I am trying to connect with MongoDB via java spark connector and I am getting an error "com.mongodb.spark.config.writeconfig", when I submit the jar and run the jar in spark shell. Here the error screenshot:
Could you please help me to resolve this issue. I have tried this as well, but no success.
$./bin/sparkR --conf "spark.mongodb.input.uri=mongodb://127.0.0.1/test.myCollection?readPreference=primaryPreferred" ./bin/sparkR --conf "spark.mongodb.output.uri=mongodb://127.0.0.1/db.test" ./bin/spark-shell --packages org.mongodb.spark:mongo-spark-connector_2.11:2.2.0
$spark-submit --master local --class com.test.spark.SparkClient /home/otalogin/SparkClient.jar
- $spark-submit --master local --class com.test.spark.SparkClient /home/otalogin/SparkClient.jar --jar mongo-spark-connector_2.11:2.2.0
but getting same error.
Please help me out of this issue.