Any Read/Write support for MongoDB ?

13 views
Skip to first unread message

Ebot Tabi

unread,
Jun 3, 2013, 5:47:02 AM6/3/13
to pangoo...@googlegroups.com
Hi guys
i wish to find out if there any mongodb read/write support for pangool out there ?

thanks

Iván de Prado

unread,
Jun 3, 2013, 10:00:47 AM6/3/13
to pangoo...@googlegroups.com
Hi Ebot, 

There is not out-of-the-box mongodb read/write connector for Pangool. But shouldn't be difficult to create a Pangool Map Only job that writes documents to Mongo in pararell. 

Iván


--
Has recibido este mensaje porque estás suscrito al grupo "pangool-user" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus correos electrónicos, envía un correo electrónico a pangool-user...@googlegroups.com.
Para obtener más opciones, visita https://groups.google.com/groups/opt_out.
 
 



--
Iván de Prado
CEO & Co-founder

Pere Ferrera Bertran

unread,
Jun 3, 2013, 10:35:38 AM6/3/13
to pangoo...@googlegroups.com
Actually you can use any Hadoop OutputFormat in Pangool, and I think there is a MongoOutputFormat in mongo-hadoop.


2013/6/3 Iván de Prado <iv...@datasalt.com>



--
Pere Ferrera
CTO & Co-founder

Ebot Tabi

unread,
Jun 3, 2013, 11:13:47 AM6/3/13
to pangoo...@googlegroups.com
Thanks for the suggestion.

Ebot Tabi

unread,
Jun 3, 2013, 11:18:20 AM6/3/13
to pangoo...@googlegroups.com
Nice thoughts there, i think i will give a try a on getting MongoInputFormat & MongoOutputFormat. Already Pangool is doing well for our log analysis, i have over 150Million docs sitting in mongodb, now need to crunch those as well. i will try out this suggestion and see how it goes.

Pere Ferrera

unread,
Jun 17, 2013, 12:35:06 PM6/17/13
to pangoo...@googlegroups.com
Hello Ebot,


We have implemented a poor-man's review parser for Qype... and it saves the result into MongoDB.

As you will see, there is one two things you need to do for persisting the output of a Pangool job to Mongo:
1) Defining the mongo URI:

MongoConfigUtil.setOutputURI(conf, "mongodb://localhost/test.qype");

2) Setting the appropriate OutputFormat in the Pangool job builder (be it TupleMRBuilder or MapOnlyJobBuilder):

builder.setOutput(new Path(outPath), new HadoopOutputFormat(MongoOutputFormat.class), Text.class, BSONObject.class);

Give it a try and let us know,

Thanks,

Ebot Tabi

unread,
Jun 18, 2013, 8:18:17 AM6/18/13
to pangoo...@googlegroups.com
Hey bro you rock, thanks for this awesome piece.


--
Has recibido este mensaje porque estás suscrito a un tema del grupo "pangool-user" de Grupos de Google.
Para anular la suscripción a este tema, visita https://groups.google.com/d/topic/pangool-user/iGb2xghltyo/unsubscribe. Para anular la suscripción a este grupo y todos sus temas, envía un correo electrónico a pangool-user...@googlegroups.com.

Para obtener más opciones, visita https://groups.google.com/groups/opt_out.
 
 



--
Ebot T.

Reply all
Reply to author
Forward
0 new messages