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

an error occourred while trying to schedule the "MongoSpark.save(sparkDocuments, writeConfig)"

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      My project scala, hadoop, spark version as follows:

       

      <scala.version>2.12.10</scala.version>
      <hadoop.version>2.7.3</hadoop.version>
      <spark.version>3.0.0</spark.version>

      pom.xml is:

       

       

       <dependency>
         <groupId>org.mongodb.spark</groupId>
         <artifactId>mongo-spark-connector_2.12</artifactId>
         <version>3.0.0</version>
       </dependency>
      

      when run MongoSpark.save(sparkDocuments, writeConfig), there is an error: 'Caused by: java.lang.ClassNotFoundException: com.mongodb.client.result.InsertManyResult'

      reference: _https://docs.mongodb.com/spark-connector/master/java/write-to-mongodb_

      could you help me, thanks!

        Attachments

          Activity

            People

            Assignee:
            ross.lawley Ross Lawley
            Reporter:
            bwang2009@yeah.net wang bin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: