Hi Srinivasan,
Have you installed Mongodb Spark connector to your databricks environment?
Here are the steps:
Once the cluster is up and running, click on “Install New” from the Libraries menu.
Here we have a variety of ways to create a library, including uploading a JAR file or downloading the Spark connector from Maven. In this example, we will use Maven and specify org.mongodb.spark:mongo-spark-connector_XXX: as the coordinates.
Remaining here: Exploring Data with MongoDB Atlas, Databricks, and Google Cloud | MongoDB Blog