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/TaskExecutionEnvironmentIn particular, conf.get("mapred.job.id") and conf.get ("mapred.task.id") will do the job.
-- Owen
