spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepesh Maheshwari <deepesh.maheshwar...@gmail.com>
Subject How to Handle Update Operation from Spark to MongoDB
Date Wed, 12 Aug 2015 08:21:22 GMT
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

Mime
View raw message