Hello Everyone,
Just posted this question also on stack overflow [0], re posting it here in case anyone can help.
I succeeded at connecting to mongodb from spark, using the mongo-spark connector [1] from a databricks notebook in python.
Right now I am configuring the mongodb uri in an environment variable, but it is not flexible, since I want to be able to change the connection parameter right in my notebook.
I read in the connector documentation [2] that it is possible to override any values set in the SparkConf.
How can I override the values from python?
Best,
Matteo
--