For each Mapper and Reducer you can get Task attempt id and Task ID both. This can be done when you set up your map using the Context object. You may also know that the when setting a Reducer an unique reduce ID is used inside reducer class setup method. You can get this ID as well.
There are multiple ways you can get this info:
1. Using JobConf Class.
2. You can use Context Class and use as below:
Keyword: Hadoop, Map/Reduce, Jobs Performance, Mapper, Reducer
Please can you post an example.
I tried and it did not work for me.