0

How to connect to Mongo DB Using Spark session using zeppelin

I am using the below script but am getting a authentication error?

In the uri I am passing the connection string/port/user and password.

people.write.format("mongodb").mode("append").option("database", "people").option("collection", "contacts").save()

  • Maybe this one? https://stackoverflow.com/questions/63754742/authentication-failure-while-trying-to-save-to-mongodb/63755470#63755470 – Wernfried Domscheit Mar 06 '23 at 08:08
  • Does this answer your question? [Authentication failure while trying to save to mongodb](https://stackoverflow.com/questions/63754742/authentication-failure-while-trying-to-save-to-mongodb) – Chandresh Khambhayata Mar 07 '23 at 12:05

0 Answers0