Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Multiple OutputURIs for MongoS [comSysto] HADOOP-59 #65
I added the capability to add multiple output URIs. Now its possible to support more than one MongoS for the output. Round robin is used for distribution. The API is backwards compatible.
How to use it:
MongoConfigUtil.setOutputURI(conf, "mongodb://mongos1/mydb.mycollection mongodb://mongos2/mydb.mycollection"); (String is splitted by StringUtils.split)
It is possible to use the old way to too:
Unfortunately, we have to define the database and collection name twice due to the MongoURI Format.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Commit is here:
Thank you so much!