Previously we set up a Scala application in order to execute a simple word count on hadoop. What comes next…