Re: Is there a mongo-hadoop-spark built on Scala 2.10?

From: Wan Bachtiar <wan.bachtiar@xxxxxxxxxxx>
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Mon, 2 May 2016 17:40:24 -0700 (PDT)
Why ads?


Maybe I understood something wrong, but are all the versions of the 
mongo-hadoop-spark dependent on spark-core_2.11?

Hi Rafael,
If you are referring to mongo-hadoop connector for Spark 
<https://github.com/mongodb/mongo-hadoop/wiki/Spark-Usage>, as mentioned on 
the installation section 
<https://github.com/mongodb/mongo-hadoop/wiki/Spark-Usage#installation
there are only two dependencies for running MongoDB Hadoop Connector with 
Spark: 

   - The ‘spark’ jar, which is called mongo-hadoop-spark.jar 
   - MongoDB Java Driver ‘uber’ jar called mongo-java-driver.jar 

Assuming you are using the latest Apache Spark 
<http://spark.apache.org/docs/latest/building-spark.html>, currently at 
v1.6.1 with default of Scala v2.10. You could add the .jar files above to 
the class path. For example using the spark shell 
<http://spark.apache.org/docs/latest/quick-start.html#interactive-analysis-with-the-spark-shell
(Scala v2.10) you could specify:

./spark-1.6.1-bin-hadoop2.6/bin/spark-shell --jars mongo-java-driver-3.2.2.jar,mongo-hadoop-spark-1.5.2.jar

However if you are referring to the MongoDB Scala Driver 
<https://docs.mongodb.org/ecosystem/drivers/scala/#mongo-scala-driver>, 
currently it only offers compatibility for Scala v2.11 
<https://docs.mongodb.org/ecosystem/drivers/scala/#language-compatibility>. 
Although the use of the Scala Driver is not required for setting up MongoDB 
Spark integrations. 

Best regards, 

Wan.


-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/dc4c8b78-02bd-4d7f-b3fa-715f1bfee6b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?