Running Map/Reduce to a different server db

59 views
Skip to first unread message

Alan Williamson

unread,
Oct 12, 2012, 12:19:46 PM10/12/12
to mongod...@googlegroups.com
We have a very large Mongo collection and would like to run a map/reduce but instead of putting those results into a collection on the same server, we would like to put the results into a remote server.

Is this possible?

Jeremy Mikola

unread,
Oct 12, 2012, 5:18:01 PM10/12/12
to mongod...@googlegroups.com


On Friday, October 12, 2012 12:19:46 PM UTC-4, Alan Williamson wrote:
We have a very large Mongo collection and would like to run a map/reduce but instead of putting those results into a collection on the same server, we would like to put the results into a remote server.

Is this possible?

This is not currently supported by any of the mapreduce command's existing output options.

A similar question was asked regarding the MongoDB Hadoop connector (http://stackoverflow.com/q/9965427/162228), where a RDMS was the desired output. It seems possible by specifying a separate output format class on Hadoop's end, although I'm unsure how easily the solution would translate to specifying another MongoDB server for output.

Sam Millman

unread,
Oct 12, 2012, 5:42:53 PM10/12/12
to mongod...@googlegroups.com
You can specify another DB on the same server though so that could be a route to go maybe? Then you can replicate that db/collection to the other server

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Reply all
Reply to author
Forward
0 new messages