Is it better to use the mapred or the mapreduce package to create a Hadoop Job?

后端 未结 3 2057
感动是毒
感动是毒 2020-11-27 03:15

To create MapReduce jobs you can either use the old org.apache.hadoop.mapred package or the newer org.apache.hadoop.mapreduce package for Mappers a

3条回答
  •  孤街浪徒
    2020-11-27 03:58

    Both the old and new APIs are good. The new API is cleaner though. Use the new API wherever you can, and use the old one wherever you need specific classes that are not present in the new API (like MultipleTextOutputFormat)

    But do take care not to use a mix of the old and new APIs in the same Mapreduce job. That leads to weird problems.

提交回复
热议问题