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