GitHub user yhuai opened a pull request:
https://github.com/apache/spark/pull/12724
[SPARK-14783] [SPARK-14786] [BRANCH-1.6] Preserve full exception stacktrace
in IsolatedClientLoader and Remove hive-cli dependency from hive subproject
This PR is the branch-1.6 version of the following commits from @JoshRosen.
We probably cannot change the dependency of sql/hive again. But, if anyone
needs this, they can use this PR.
**[SPARK-14783] Preserve full exception stacktrace in IsolatedClientLoader**
In IsolatedClientLoader, we have a`catch` block which throws an exception
without wrapping the original exception, causing the full exception stacktrace
and any nested exceptions to be lost. This patch fixes this, improving the
usefulness of classloading error messages.
**[SPARK-14786] Remove hive-cli dependency from hive subproject**
The `hive` subproject currently depends on `hive-cli` in order to perform a
check to see whether a `SessionState` is an instance of
`org.apache.hadoop.hive.cli.CliSessionState` (see #9589). The introduction of
this `hive-cli` dependency has caused problems for users whose Hive metastore
JAR classpaths don't include the `hive-cli` classes (such as in #11495).
This patch removes this dependency on `hive-cli` and replaces the
`isInstanceOf` check by reflection. I added a Maven Enforcer rule to ban
`hive-cli` from the `hive` subproject in order to make sure that this
dependency is not accidentally reintroduced.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yhuai/spark hivecli
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12724.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 #12724
----
commit 0d5607676f5d8f95dd87ba43fe0f93e2d546b84e
Author: Josh Rosen <[email protected]>
Date: 2016-04-21T17:43:22Z
[SPARK-14783] Preserve full exception stacktrace in IsolatedClientLoader
In IsolatedClientLoader, we have a`catch` block which throws an exception
without wrapping the original exception, causing the full exception stacktrace
and any nested exceptions to be lost. This patch fixes this, improving the
usefulness of classloading error messages.
Author: Josh Rosen <[email protected]>
Closes #12548 from JoshRosen/improve-logging-for-hive-classloader-issues.
commit 321ec4e999bfdef2f19c5b7888f8d8236d56c59c
Author: Yin Huai <[email protected]>
Date: 2016-04-27T03:12:11Z
[SPARK-14786] Remove hive-cli dependency from hive subproject
----
---
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]