Mongodb-scala connector

XMLWordPrintableJSON

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

      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_14h19_42.png
          2021-08-21_14h19_42.png
          57 kB
        2. 2021-08-21_14h16_29.png
          2021-08-21_14h16_29.png
          17 kB

            Assignee:
            Ross Lawley
            Reporter:
            Phuoc Bui
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: