Skip to content

Commit

Permalink
[SPARK-14783] Preserve full exception stacktrace in IsolatedClientLoader
Browse files Browse the repository at this point in the history
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 apache#12548 from JoshRosen/improve-logging-for-hive-classloader-issues.
  • Loading branch information
JoshRosen committed Apr 21, 2016
1 parent 4f36917 commit a70d403
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a70d403

Please sign in to comment.