I spent almost a day but couldn't figure out how to use IdentityReducer in the new Hadoop API. All references or classes I can find are with the old API. And obviously mixing up old API idetntitreducer class in the new API codebase doesn't go well. Any help will be appreciated.
Asked
Active
Viewed 6,741 times
3 Answers
37
Mainly because in the new API Mapper
and Reducer
are classes instead of interfaces, they are the new replacement of IdentityMapper/Reducer.
So you just have to use Mapper.class
and Reducer.class
to get the identity.

Thomas Jungblut
- 20,854
- 6
- 68
- 91
-
7And if you don't explicitly set the mapper or reducer class, the identity version is used by default – Chris White Mar 22 '12 at 01:36
0
Have a look :
http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/mapred/lib/IdentityReducer.html
Its for hadoop stable version

Mohyt
- 990
- 2
- 10
- 26