0

I'm having a hadoop job which sources data from multiple DocumentDB collection. While configuring the connection with DocumentDB I can set INOUT_COLLECTION_NAMES using the following comand

 conf.set(ConfigurationUtil.INPUT_COLLECTION_NAMES, inputCollName);

My question is what if I have more than just one collection?What if I don't know how many collections I have in advance?

HHH
  • 6,085
  • 20
  • 92
  • 164
  • my main question is when I don't know how many collections I have in advance. How to get the list of all the collections and add them to the ``INPUT_COLLECTION_NAMES``? – HHH Jun 05 '15 at 23:55

1 Answers1

0

Please look into here. Hope it suits your requirement. I think hadoop is best suited for batch process, which means things are not dynamic. happy coding

Community
  • 1
  • 1
Ramzy
  • 6,948
  • 6
  • 18
  • 30