简体   繁体   中英

Sharding With Mongodb Hadoop Connector

HI i have the same case as mentioned in this question Hadoop HDFS MapReduce output into MongoDb

I just want to use Hadoop to do Map Reduce (MR) from Mongodb and then the outputs are to be written back into MongoDB as collections. Though the above question has not been solved yet, i have more issue with this scenario. Here i need the output of MR to be written into MongoDB shards and to be sharded correctly.

My question, is it possible to do such scenario since even i did that MR using MongoDB (not Hadoop), i got the output not split correctly into sharded servers and got duplicated output on the result. If it's possible how to do that? Thanks in advance.

Yes. You write to mongo as usual. The fact that your mongo db is set to run on shards is a detail that is hidden from you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM