hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Swathi V <swat...@zinniasystems.com>
Subject Re: Passing a Global Variable into a Mapper
Date Thu, 15 Sep 2011 17:53:36 GMT
Hi,
I guess you can make use of job.getconfiguration().set() in driver to set
the variable and in mapper you can make use of setup method like this:
Configuration conf = context.getconfiguration();
somevar = conf.get();

On Thu, Sep 15, 2011 at 11:13 PM, Arko Provo Mukherjee <
arkoprovomukherjee@gmail.com> wrote:

> Hi,
>
> Is there a way to pass some data from the driver class to the Mapper
> class without going through the HDFS?
>
> Does the API provide us with some functionality to pass some variables?
>
> Thanks a lot in advance!
> Warm regards
> Arko
>



-- 
Regards,
Swathi.V.

Mime
View raw message