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 II

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

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now