Apache Spark Design Patterns Using Scala apache spark Series 1 The word count
A simple word count using scala in Spark
Simple word count example - Click to see code
The missing logic is
1) Count words in the Body
2) Error handling
3) Data clean up - we don�t count single quotes, special characters This example uses case classes and xml parsing which in in-built Scala.
Enhanced word count example - Click to see code