hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad Tariq <donta...@gmail.com>
Subject Re: How to pass parameter to mappers
Date Thu, 29 Aug 2013 11:41:11 GMT
@rab ra : Last line of the para.

An example :

*Job Setup -*
Configuration conf = new Configuration();
conf.set("param", "value");
Job job = new Job(conf);

*Inside mapper -*
Configuration conf = context.getConfiguration();
String paramValue = conf.get("param");

HTH

Warm Regards,
Tariq
cloudfront.blogspot.com


On Wed, Aug 28, 2013 at 7:05 PM, Shahab Yunus <shahab.yunus@gmail.com>wrote:

> See here:
> http://hadoop.apache.org/docs/stable/mapred_tutorial.html#Job+Configuration
>
> Regards,
> Shahab
>
>
> On Wed, Aug 28, 2013 at 7:59 AM, rab ra <rabmdu@gmail.com> wrote:
>
>> Hello
>>
>> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>>
>
>

Mime
View raw message