hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamal sasha <jamalsha...@gmail.com>
Subject Passing an object in mapper
Date Thu, 15 Aug 2013 03:09:35 GMT
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

Mime
View raw message