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

后端 未结 3 2053
感动是毒
感动是毒 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条回答
  •  旧时难觅i
    2020-11-27 03:44

    Old API (mapred)

    1. Exists in Package org.apache.hadoop.mapred

    2. Provide A map/reduce job configuration.

    3. Reduces values for a given key, based on the Iterator
    4. Package Summary

    New API (mapreduce)

    1. Exists in Package org.apache.hadoop.mapreduce

    2. Job configuration is done by separate class, Called JobConf which is extension of Configuration
      Class

    3. Reduces values for a given key, based on the Iterable

    4. Package Summary

提交回复
热议问题