You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Deepesh Maheshwari <de...@gmail.com> on 2015/08/12 10:21:22 UTC

How to Handle Update Operation from Spark to MongoDB

Hi,

I am using MongoDb -Hadoop connector to insert RDD into mongodb.

rdd.saveAsNewAPIHadoopFile("file:///notapplicable",
                        Object.class, BSONObject.class,
MongoOutputFormat.class, outputConfig);

But, some operation required to insert rdd data as update operation for
Mongo instead of above insert operation.

Please suggest how to accomplish this task.

Regards,
Deepesh