spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yin Huai <yh...@databricks.com>
Subject Re: Spark-sql(yarn-client) java.lang.NoClassDefFoundError: org/apache/spark/deploy/yarn/ExecutorLauncher
Date Thu, 18 Jun 2015 15:19:54 GMT
Is it the full stack trace?

On Thu, Jun 18, 2015 at 6:39 AM, Sea <261810726@qq.com> wrote:

> Hi, all:
>
> I want to run spark sql on yarn(yarn-client), but ... I already set
> "spark.yarn.jar" and  "spark.jars" in conf/spark-defaults.conf.
>
> ./bin/spark-sql -f game.sql --executor-memory 2g --num-executors 100 > game.txt
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/spark/deploy/yarn/ExecutorLauncher
> Caused by: java.lang.ClassNotFoundException:
> org.apache.spark.deploy.yarn.ExecutorLauncher
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class:
> org.apache.spark.deploy.yarn.ExecutorLauncher.  Program will exit.
>
>
> Anyone can help?
>

Mime
View raw message