hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej Bialecki ...@getopt.org>
Subject Re: Getting job ID from within a running task
Date Wed, 13 Sep 2006 20:25:31 GMT
Owen O'Malley wrote:
>
> On Sep 13, 2006, at 7:07 AM, Andrzej Bialecki wrote:
>
>> Hi,
>>
>> I need to be able to retrieve the current job id from within map or 
>> reduce tasks. I looked here and there, but I wasn't able to find any 
>> way to do this in the API ...
>
> Yes, look under "Localized Properties in the JobConf" on the wiki:
>
> http://wiki.apache.org/lucene-hadoop/TaskExecutionEnvironment
>
> In particular, conf.get("mapred.job.id") and 
> conf.get("mapred.task.id") will do the job.

Thanks Owen, I should have checked this page ...

-- 
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com



Mime
View raw message