Develop wordcount using REPL

Originally published at: http://www.itversity.com/topic/develop-wordcount-using-repl/

Let us come up with code for getting word count Make sure to set up environment and have project sparkdemo Setting up environment – Spark We can launch REPL using spark-shell or sbt console (preferred) With spark-shell we will get implicit SparkContext object where as with sbt console we have to create one Here is…