--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Now, there is A SECOND PROBLEM IN YOUR CODE. If you want to run Spark, you'll need a Spark Context. You should add some lines at the beginning of your class. Something like this:
val sparkConf =
new SparkConf().setMaster("local[2]").setAppName("THIS_IS_AN_EXAMPLE")
val sc = new SparkContext(sparkConf)