Java MapReduce counting by date

后端 未结 2 850
萌比男神i
萌比男神i 2021-01-28 09:16

I\'m new to Hadoop, and i\'m trying to do a MapReduce program, to count the max first two occurrencise of lecters by date (grouped by month). So my input is of this kind :

2条回答
  •  走了就别回头了
    2021-01-28 10:02

    The main problem is about the sign of the reduce method :

    I was writing : public void reduce(Text key, Iterator values, Context context)

    instead of

        public void reduce(Text key, Iterable values,
    

    This is the reason why i obtain my Map output instead of my Reduce otuput

提交回复
热议问题