You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Steve Han <hx...@gmail.com> on 2008/04/14 08:44:23 UTC

Where are passed the JobConf?

I am reading Map/Reduce tutorial in official site of hadoop core.It said
that "Overall, Mapper implementations are passed the JobConf for the job via
the JobConfigurable.configure(JobConf)<http://hadoop.apache.org/core/docs/r0.16.1/api/org/apache/hadoop/mapred/JobConfigurable.html#configure%28org.apache.hadoop.mapred.JobConf%29>method
and override it to initialize themselves".Where  is  the  place  in
the  code  JobConf  is  passed to  Mapper implementation(in WordCount. v1.0
or v2.0)?Any idea?Thanks  a  lot.

-- 
Regards,
Steve Han
Originale Inc.

Re: Where are passed the JobConf?

Posted by Hairong Kuang <ha...@yahoo-inc.com>.
JobConf gets passed to a mapper in Mapper.configure(JobConf job). Check
http://hadoop.apache.org/core/docs/r0.16.1/api/org/apache/hadoop/mapred/MapR
educeBase.html#configure(org.apache.hadoop.mapred.JobConf)

Hairong


On 4/13/08 11:44 PM, "Steve Han" <hx...@gmail.com> wrote:

> I am reading Map/Reduce tutorial in official site of hadoop core.It said
> that "Overall, Mapper implementations are passed the JobConf for the job via
> the 
> JobConfigurable.configure(JobConf)<http://hadoop.apache.org/core/docs/r0.16.1/
> api/org/apache/hadoop/mapred/JobConfigurable.html#configure%28org.apache.hadoo
> p.mapred.JobConf%29>method
> and override it to initialize themselves".Where  is  the  place  in
> the  code  JobConf  is  passed to  Mapper implementation(in WordCount. v1.0
> or v2.0)?Any idea?Thanks  a  lot.