Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> Re: How to pass parameter to mappers


Copy link to this message
-
Re: How to pass parameter to mappers
@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 <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]> wrote:
>
>> Hello
>>
>> Any hint on how to pass parameters to mappers in 1.2.1 hadoop release?
>>
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB