Hi, In the Configuration object in your driver class you can set the properties as key value pair. This configuration object will be set in the Job Object. The same properties can be accessed in the mapper/reducer using the Context Object -> getConfiguration() -> get(propertyName).
Hope this helps. Regards, Sivaram R L On Thu, Aug 15, 2013 at 8:39 AM, jamal sasha <[email protected]> wrote: > 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 >
