You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by jo...@apache.org on 2016/04/21 19:43:34 UTC

spark git commit: [SPARK-14783] Preserve full exception stacktrace in IsolatedClientLoader

Repository: spark
Updated Branches:
  refs/heads/master 4f369176b -> a70d40314


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

Closes #12548 from JoshRosen/improve-logging-for-hive-classloader-issues.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/a70d4031
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a70d4031
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a70d4031

Branch: refs/heads/master
Commit: a70d40314c7706c138520192cb3cf33b78d5b504
Parents: 4f36917
Author: Josh Rosen <jo...@databricks.com>
Authored: Thu Apr 21 10:43:22 2016 -0700
Committer: Josh Rosen <jo...@databricks.com>
Committed: Thu Apr 21 10:43:22 2016 -0700

----------------------------------------------------------------------
 .../org/apache/spark/sql/hive/client/IsolatedClientLoader.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/a70d4031/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala
----------------------------------------------------------------------
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 1d502e0..7e0d1b4 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
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org