views:

8

answers:

1

Hello

I want to get the id of each mapper and reducer task because I want to tag the output of these mappers and reducers according to the mapper and reducer id. How can I retrieve the ids of each?

Thanks

A: 

you can do it using: org.apache.hadoop.mapreduce.MapContext::getTaskAttemptID().