A simple program to count the frequency of word’s using Scala in Spark

This is my first attempt to understand how Spark works. Continuing from my previous post on how to install Spark on a windows environment the next logical task to do was to execute a simple hello world type program. Therefore in this post I attempt to count the frequency of words in the complete works of William Shakespeare.