Created 04-22-2016 05:35 PM
[hdfs@sandbox root]$ spark-submit --class SparkWordCount --master local /usr/akila/spark-application/wordcount.jar java.lang.ClassNotFoundException: SparkWordCount
Make sure that the class in the jar is called "SparkWordCount"
wordcount.jar is jar file created by eclipse from SparkWordCount.scala.
Created 04-22-2016 05:48 PM
it means your SparkWordCount class is not found in the jar.
Created 04-22-2016 06:00 PM
verify if the class exists.
jar tvf /usr/akila/spark-application/wordcount.jar
I believe you need to specify the full class name including it's package name, you can check full class name using below command.
bash# tar xvf wordcount.jar|grep -i SparkWordCount
once you get full class name then just mention it in --class option ( like --class com.example.test.SparkWordCount)