Search code examples
javamapreducehdfshadoop2

Word Count is descending order in Hadoop


What changes do we need to make and on which class i.e. Mapper or Reducer, if we want to write a program for Word Count which will display result in descending order?


Solution

  • As per the JavDoc

    The output of the Reducer is not re-sorted.

    The best way to achieve that is to create another job which would take the output of WordCount as input and produce a sorted result as per your requirement.