hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: Old API: obtaining task attempt ID in the mapper?
Date Sun, 30 Jan 2011 06:50:29 GMT
The JobConf will contain a property name-value pair for this. See the
table below for task-local properties:
http://hadoop.apache.org/common/docs/r0.20.2/mapred_tutorial.html#Task+JVM+Reuse

On Sun, Jan 30, 2011 at 7:26 AM, Dmitriy Lyubimov <dlieu.7@gmail.com> wrote:
> Hi,
> I am doing a piece of backporting some code to old API. i have a need to
> obtain task attempt id within mapper initialization, which is passed in thru
> context in the new API. However, in the old api i only have
> JobConfigurable#configure() which passes in JobConf.
> How do i obtain task id attempt (i actually need just task id) in the old
> api (0.20 platform)?
> Thank you very much.
> -Dmitriy



-- 
Harsh J
www.harshj.com

Mime
View raw message