These are my steps to include:
- I have to include JSON file from S3.
- File contains uid, ag, gn, yob, scrtp attribute.
- I have to make key as uid and value as ag, gn, yob, scrtp value, and that is included in HashMap collection.
- Reducer will reduce it according to key. Hash value can also be calculated based on key as I have 5 database in MongoDB.
I am expecting result to be written into 5 Mongo database according to hash value and write should be bulk write. How to achieve this as above steps?