diff options
author | Josh Rosen <joshrosen@databricks.com> | 2016-04-21 10:43:22 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2016-04-21 10:43:22 -0700 |
commit | a70d40314c7706c138520192cb3cf33b78d5b504 (patch) | |
tree | 7d9c4606bd920c35cfe16b4271f24021275a5c0e /sql/hive/src | |
parent | 4f369176b750c980682a6be468cefa8627769c72 (diff) | |
download | spark-a70d40314c7706c138520192cb3cf33b78d5b504.tar.gz spark-a70d40314c7706c138520192cb3cf33b78d5b504.tar.bz2 spark-a70d40314c7706c138520192cb3cf33b78d5b504.zip |
[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.
Diffstat (limited to 'sql/hive/src')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala index 1d502e01d9..7e0d1b446f 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala @@ -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 } |