[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hadoop-user
Subject:    Re: Reducer ID
From:       Farhan Husain <farhan.husain () csebuet ! org>
Date:       2010-04-27 16:56:43
Message-ID: w2wb5485e3d1004270956x1937139bqe870ad29f85d9c55 () mail ! gmail ! com
[Download RAW message or body]


Thanks!

2010/4/26 Amareshwari Sri Ramadasu <amarsri@yahoo-inc.com>

> context.getTaskAttemptID() gives the task attempt id and
> context,getTaskAttemptID().getTaskID() gives the  task id of the reducer.
> Context.getTaskAttemptID().getTaskID().getId() gives the reducer number.
>
> Thanks
> Amareshwari
>
> On 4/27/10 5:34 AM, "Gang Luo" <lgpublic@yahoo.com.cn> wrote:
>
> JobConf.get("mapred.task.id") gives you everything (including attempt id)=
.
>
> -Gang
>
>
> ----- =D4=AD=CA=BC=D3=CA=BC=FE ----
> =B7=A2=BC=FE=C8=CB=A3=BA Farhan Husain <farhan.husain@csebuet.org>
> =CA=D5=BC=FE=C8=CB=A3=BA common-user@hadoop.apache.org
> =B7=A2=CB=CD=C8=D5=C6=DA=A3=BA 2010/4/26 (=D6=DC=D2=BB) 7:13:03 =CF=C2=CE=
=E7
> =D6=F7   =CC=E2=A3=BA Reducer ID
>
> Hello,
>
> Is it possible to know the unique id of a reducer inside the reduce or
> setup
> method of a reducer class? I tried to find any method of the context clas=
s
> which might help in this regard but could not get any.
>
> Thanks,
> Farhan
>
>
>
>
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic