This isn't a particularly good example as you're doing all the work adding up the word counts in your reduce function.
A better example would count the occurrences of the words in each line in the map, and then add up the totals in reduce.
A better example would count the occurrences of the words in each line in the map, and then add up the totals in reduce.
No comments yet.