Gurus,
I am trying to run some examples given under directory examples
spark/examples/src/main/scala/org/apache/spark/examples/
I am trying to run HdfsTest.scala
However, when I run HdfsTest.scala against spark shell it comes back with error
Spark context available as sc.
SQL context available as sqlContext.
Loading HdfsTest.scala...
<console>:19: error: illegal start of definition
package org.apache.spark.examples
^
import org.apache.spark._
defined module HdfsTest
scala>
Can someone guide me how to run these Ccala codes without errors? Do I need to
compile them first with scalac -cp $CLASSPATH HdfsTest.scala
Thanking you