Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hadoop, mail # user - Passing an object in mapper


Copy link to this message
-
Passing an object in mapper
jamal sasha 2013-08-15, 03:09
Hi,
   I am initializing an object in driver code.
For sake of argument let say I want to save data to some database..
say:
Connection con = new Connection(host, db);
Now, in reducer I want to do something like
con.write(key,value)

So, how do i pass this object from driver to mapper / reducer/?
Any clue? suggestions?
Thanks
+
Sivaram RL 2013-08-15, 03:25