Skip to content
Snippets Groups Projects
Commit a70d4031 authored by Josh Rosen's avatar Josh Rosen
Browse files

[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 <joshrosen@databricks.com>

Closes #12548 from JoshRosen/improve-logging-for-hive-classloader-issues.
parent 4f369176
No related branches found
No related tags found
No related merge requests found
......@@ -263,7 +263,7 @@ private[hive] class IsolatedClientLoader(
throw new ClassNotFoundException(
s"$cnf when creating Hive client using classpath: ${execJars.mkString(", ")}\n" +
"Please make sure that jars for your version of hive and hadoop are included in the " +
s"paths passed to ${HiveContext.HIVE_METASTORE_JARS}.")
s"paths passed to ${HiveContext.HIVE_METASTORE_JARS}.", e)
} else {
throw e
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment