S Kr
S Kr

Reputation: 1840

Which map reduce package to use

i see the map/reduce class present @ both org.apache.hadoop.mapred & org.apache.hadoop.mapreduce. What should we use and which is better? I see org.apache.hadoop.mapred had been removed once but has been added back/

Upvotes: 1

Views: 95

Answers (1)

Tejas Patil
Tejas Patil

Reputation: 6169

org.apache.hadoop.mapred is the package from legacy hadoop code. org.apache.hadoop.mapreduce is the new addition from Hadoop 0.20.x.

Functionality wise there is not much difference between the old the new API. The only significant difference is that records are pushed to the mapper/reducer in the old API. While the new API supports both pull/push mechanism. You can get more information about the pull mechanism here.

Also, the old API is deprecated. You can find more information about the new API here. Note that not all things are migrated from mapred to mapreduce. As far as possible, try to use the new API.

Upvotes: 1

Related Questions