cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to mongodb spark connector on a shared cluster

lmorrissey
New Contributor II

The connector works without issue if the cluster is made private; does anyone know why this is or have a workaround (besides spawning a bunch of private clusters)

3 REPLIES 3

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @lmorrissey,

What do you mean by cluster is made private? are you using any Private Link network setup?

lmorrissey
New Contributor II

The cluster configuration access mode (under cluster configuration) needs to be single user access to use the mongo db spark connector. Tagging @Elebioda for detail.

dewman
New Contributor

Any news on this? I too am having issues where a dedicated cluster can read from MongoDB no problem but as soon as I try to run the notebook with a shared cluster, I get an ConflictType (ofclass com.mongodb.spark.sql.types.ConflictTypes) error

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group