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 08:21:18 GMT
Yes, I believe mapred.task.id should be parse-able by the
mapred.TaskAttemptID class. But mapred.tip.id would give you the Task
ID itself, instead of an attempt ID.

On Sun, Jan 30, 2011 at 1:24 PM, Dmitriy Lyubimov <dlieu.7@gmail.com> wrote:
> Thanks.
> I suppose one of them is meant to be parsed with TaskAttemptID.forName(..),
> right?
>
> On Sat, Jan 29, 2011 at 10:50 PM, Harsh J <qwertymaniac@gmail.com> wrote:
>>
>> 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
>
>



-- 
Harsh J
www.harshj.com

Mime
View raw message