Hello,

I have a modified WordCount program with
the following characteristics:

input file:
urla.com,urlb.com
urla.com,urlc.com
urlb.com,urlc.com
urlc.com,urla.com
urld.com,urlc.com

mapreduce output:
urla.com 3
urlb.com 2
urlc.com 4
urld.com 1

Next, tried using a comparator with a different JobConf and mapreduce:

jc.setOutputKeyComparatorClass(LongWritable.DecreasingComparator.class);

but it didn't work because the values are IntWritable and my
OutputCollector wasn't picking up the right things...

What do I need to collect in both the map and reduce
for the final result to sort descending high-low?

Thanks,

Peter W.

Reply via email to