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

Switch to Threaded View
Hadoop >> mail # user >> Passing an object in mapper

Copy link to this message
Passing an object in mapper
   I am initializing an object in driver code.
For sake of argument let say I want to save data to some database..
Connection con = new Connection(host, db);
Now, in reducer I want to do something like

So, how do i pass this object from driver to mapper / reducer/?
Any clue? suggestions?