-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-14783] [SPARK-14786] [BRANCH-1.6] Preserve full exception stacktrace in IsolatedClientLoader and Remove hive-cli dependency from hive subproject #12724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #57083 has finished for PR 12724 at commit
|
|
test this please |
|
Test build #57088 has finished for PR 12724 at commit
|
|
test this please |
|
Test build #57131 has finished for PR 12724 at commit
|
|
test this please |
|
Test build #2896 has finished for PR 12724 at commit
|
|
Test build #57145 has finished for PR 12724 at commit
|
|
Test build #57173 has finished for PR 12724 at commit
|
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.
|
Test build #57193 has finished for PR 12724 at commit
|
|
test this please |
1 similar comment
|
test this please |
|
Test build #57214 has finished for PR 12724 at commit
|
|
Test build #57221 has finished for PR 12724 at commit
|
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
catchblock 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
hivesubproject currently depends onhive-cliin order to perform a check to see whether aSessionStateis an instance oforg.apache.hadoop.hive.cli.CliSessionState(see #9589). The introduction of thishive-clidependency has caused problems for users whose Hive metastore JAR classpaths don't include thehive-cliclasses (such as in #11495).This patch removes this dependency on
hive-cliand replaces theisInstanceOfcheck by reflection. I added a Maven Enforcer rule to banhive-clifrom thehivesubproject in order to make sure that this dependency is not accidentally reintroduced.