hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Passing parameters to MapReduce through Oozie
Date Sat, 24 Aug 2013 00:54:33 GMT
If you use mapreduce-action, then is the configuration lookup done
within a Mapper/Reducer? If so, how are you grabbing the configuration
object? Via the overridden "configure(JobConf conf)" method?

On Fri, Aug 23, 2013 at 11:07 PM, Shailesh Samudrala
<shailesh2088@gmail.com> wrote:
> Hello,
>
> I am trying to pass parameters to my MapReduce job from Oozie MapReduce
> action. Here's how I'm declaring the parameters in Oozie workflow.xml:
>
> <property>
>      <name>param1</name>
>      <value>paramValue</value>
> </property>
>
>
> However, I'm not sure if this is the right way. Even if it is, I don't know
> how to access those parameters from within my Map-Reduce job.
>
> I tried
>
> configuration.get("param1");
>
> but, it doesn't work.
>
> I would really appreciate some advise on this.
>
> Thank you!
>
> Regards,
>
> Shailesh



-- 
Harsh J

Mime
View raw message