Hadoop Spark – Word Count
One of the first things to do in most programming languages is create a “Hello World!” program. The equivalent in Spark is to create a program that will read the contents of a file and count the number of occurrences of each word.
Below I will show a basic example, so let’s start counting.