April 2018
Beginner
238 pages
7h 13m
English
The coding is exactly the same as in the previous example, except for the last line, .sortByKey(). Our key, by default, is the word count column (as that is what we are operating upon for the reduce function). Secondly, Spark automatically sorts the actual words within a word count.