Failed runing dataset spark read from mongodb as a document told

Hi Kube_ctl,

Can you provide the “MongoDB server” version that you are using? There seems to be some version misconfiguration between the mongoDB spark connector and other drivers

Also have you looked at the samples provided here: https://www.mongodb.com/docs/spark-connector/v3.0/java/write-to-mongodb/