hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason <urg...@gmail.com>
Subject Re: Is it pissible get a number of mapper tasks?
Date Sat, 04 Dec 2010 03:04:48 GMT
> BTW, why not take task attempt id context.getTaskAttemptID() as the
> prefix of unique id ? The task attempt id for each task should be
> different

The reason is that I would prefer to not have big gaps in my int id sequence, so i'd rather
store mapper task ID in the low bits (suffix instead of prefix) thus I need to know total
number of Mappers.



View raw message