hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen O'Malley <o...@yahoo-inc.com>
Subject Re: Getting job ID from within a running task
Date Wed, 13 Sep 2006 16:08:17 GMT

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:


In particular, conf.get("mapred.job.id") and conf.get 
("mapred.task.id") will do the job.

-- Owen

View raw message