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 Qu Chen <ch...@gmail.com> on 2012/04/19 02:01:55 UTC
How to get the job name inside MapTask?
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
Re: How to get the job name inside MapTask?
Posted by Harsh J <ha...@cloudera.com>.
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 <ch...@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