hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farhan Husain <farhan.hus...@csebuet.org>
Subject Re: Reducer ID
Date Tue, 27 Apr 2010 16:56:43 GMT
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
>
>
> ----- 原始邮件 ----
> 发件人: Farhan Husain <farhan.husain@csebuet.org>
> 收件人: common-user@hadoop.apache.org
> 发送日期: 2010/4/26 (周一) 7:13:03 下午
> 主   题: 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 class
> which might help in this regard but could not get any.
>
> Thanks,
> Farhan
>
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message