An Aggregate-based map/reduce program that computes the histogram of the words in the input files.
bin/hadoop jar hadoop-examples-*.jar aggregatewordhist <in-dir> <out-dir> numOfReducers textinputformat
We’re the knights of the round table
We dance whene’er we’re able
We do routines and chorus scenes
With footwork impeccable.
We dine well here in Camelot
We eat ham and jam and spam a lot.
The ouptut will be a histogram with each bar showing the number of occurences of a particular word.