Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-306

Mongodb-scala connector

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      Databricks

      Scala Version : 2.12 but I cannot 

       

      Hi, I am using Scala to connect to MongoDB Atlas cluster and I got the issue : 

      NoSuchMethodError: com.mongodb.MongoClientSettings.getServerApi()Lcom/mongodb/ServerApi;

      The tutorial that I followed: https://docs.mongodb.com/drivers/scala/

      Used library: 

      org.mongodb.spark:mongo-spark-connector_2.12:3.0.1

      org.mongodb.scala:mongo-scala-driver_2.12:4.3.1

      It looks like I miss libraries from Mongodb, what is that? ** 

      If not, what is this issue? 

      Thank you  

       

        1. 2021-08-21_14h16_29.png
          2021-08-21_14h16_29.png
          17 kB
        2. 2021-08-21_14h19_42.png
          2021-08-21_14h19_42.png
          57 kB

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            s3634831@rmit.edu.vn Phuoc Bui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: