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: How to get the job name inside MapTask?
Date Thu, 19 Apr 2012 04:21:56 GMT
If new API, use the available Map/Reduce context object:

context.getJobName()

If old API:

Grab the configuration object and look for value of "mapred.job.name".

On Thu, Apr 19, 2012 at 5:31 AM, Qu Chen <chenqu123@gmail.com> wrote:
> Hi,
>
> I am trying to get the actual job name (e.g. WordCount, Sort, etc) inside
> MapTask class. How can I do that?
>
> Thanks,
>
> - Qu



-- 
Harsh J

Mime
View raw message