Have you tried including package name in the class name ? Thanks
> On Aug 8, 2015, at 12:00 AM, Yasemin Kaya <godo...@gmail.com> wrote: > > Hi, > > I have a little spark program and i am getting an error why i dont > understand. > My code is https://gist.github.com/yaseminn/522a75b863ad78934bc3. > I am using spark 1.3 > Submitting : bin/spark-submit --class MonthlyAverage --master local[4] > weather.jar > > > error: > > ~/spark-1.3.1-bin-hadoop2.4$ bin/spark-submit --class MonthlyAverage --master > local[4] weather.jar > java.lang.ClassNotFoundException: MonthlyAverage > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:274) > at > org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:538) > at > org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166) > at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189) > at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110) > at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) > Using Spark's default log4j profile: > org/apache/spark/log4j-defaults.properties > > > Please help me Asap.. > > yasemin > -- > hiç ender hiç