GitHub user zjffdu opened a pull request:
https://github.com/apache/spark/pull/9133
Spark 11125
This is the exception after this patch. Please help review
```
java.lang.NoClassDefFoundError: org/apache/hadoop/hive/cli/CliDriver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at org.apache.spark.util.Utils$.classForName(Utils.scala:173)
at
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:647)
at
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.hive.cli.CliDriver
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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 21 more
Failed to load hive class.
You need to build Spark with -Phive and -Phive-thriftserver.
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zjffdu/spark SPARK-11125
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9133.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9133
----
commit be67f954270a28f2046b33d9422e983b3b9230a6
Author: Jeff Zhang <[email protected]>
Date: 2015-10-14T08:09:59Z
SPARK-11099 [SPARK SHELL] [SPARK SUBMIT] Default conf property file is not
loaded
commit c4277c154dff7b9d525dba1e95b18afc57b9cd24
Author: Jeff Zhang <[email protected]>
Date: 2015-10-14T08:32:39Z
SPARK-11099 add apache license header
commit ee79b20bb460e42e4a05fc43c1aa7a6375a2ad18
Author: Jeff Zhang <[email protected]>
Date: 2015-10-14T23:54:30Z
SPARK-11099 Fix unit test failure
commit 115a8f1938aa41d9f57cb364d3d75f159bcc15df
Author: Jeff Zhang <[email protected]>
Date: 2015-10-15T03:22:17Z
SPARK-11099 Fix unit test failure
commit c8c9614ca8477cb627d15f1b8a9fcd7a905e30ee
Author: Jeff Zhang <[email protected]>
Date: 2015-10-15T06:46:17Z
SPARK-11125 [SQL] Unreadable exception when running spark-sql without
building with -Phive-thriftserver and SPARK_PREPEND_CLASSES is set
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]