I am new to Spark and need help with the error:
java.lang.NoClassDefFoundError: org/apache/spark/rdd/RDD$
I am creating a standalone Spark example in Scala. I ran sbt clean package
and sbt assembly
to package the scala spark code. Both completed successfully without any error. Any operation on a RDD throws error. Any pointers to fix this issue will be really helpful.
I invoke the job using spark-submit
command.
$SPARK_HOME/bin/spark-submit --class org.apache.spark.examples.GroupTest /Users/../spark_workspace/spark/examples/target/scala-2.10/spark-examples_2.10-1.3.0-SNAPSHOT.jar