You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by rab ra <ra...@gmail.com> on 2013/08/28 13:59:48 UTC
How to pass parameter to mappers
Hello
Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
Re: How to pass parameter to mappers
Posted by Mohammad Tariq <do...@gmail.com>.
@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 <sh...@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 <ra...@gmail.com> wrote:
>
>> Hello
>>
>> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>>
>
>
Re: How to pass parameter to mappers
Posted by Mohammad Tariq <do...@gmail.com>.
@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 <sh...@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 <ra...@gmail.com> wrote:
>
>> Hello
>>
>> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>>
>
>
Re: How to pass parameter to mappers
Posted by Mohammad Tariq <do...@gmail.com>.
@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 <sh...@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 <ra...@gmail.com> wrote:
>
>> Hello
>>
>> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>>
>
>
Re: How to pass parameter to mappers
Posted by Mohammad Tariq <do...@gmail.com>.
@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 <sh...@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 <ra...@gmail.com> wrote:
>
>> Hello
>>
>> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>>
>
>
Re: How to pass parameter to mappers
Posted by Shahab Yunus <sh...@gmail.com>.
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 <ra...@gmail.com> wrote:
> Hello
>
> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>
Re: How to pass parameter to mappers
Posted by Shahab Yunus <sh...@gmail.com>.
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 <ra...@gmail.com> wrote:
> Hello
>
> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>
Re: How to pass parameter to mappers
Posted by Shahab Yunus <sh...@gmail.com>.
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 <ra...@gmail.com> wrote:
> Hello
>
> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>
Re: How to pass parameter to mappers
Posted by Shahab Yunus <sh...@gmail.com>.
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 <ra...@gmail.com> wrote:
> Hello
>
> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>