From a1dcb0f1d4095399002ee22c01724ea5ede4cc64 Mon Sep 17 00:00:00 2001 From: Josh Rosen Date: Thu, 21 Apr 2016 10:43:22 -0700 Subject: [PATCH 1/2] [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 Closes #12548 from JoshRosen/improve-logging-for-hive-classloader-issues. --- .../org/apache/spark/sql/hive/client/IsolatedClientLoader.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e60048bbc48ca..c365b2a93d118 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 @@ -255,7 +255,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 } From 49b7b528a8928335e16bf6081f7dad1e819c77e2 Mon Sep 17 00:00:00 2001 From: Yin Huai Date: Tue, 26 Apr 2016 20:12:11 -0700 Subject: [PATCH 2/2] [SPARK-14786] Remove hive-cli dependency from hive subproject --- sql/hive/pom.xml | 25 ++++++++++++++++--- .../spark/sql/hive/client/ClientWrapper.scala | 13 ++++++++-- .../hive/client/IsolatedClientLoader.scala | 2 +- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/sql/hive/pom.xml b/sql/hive/pom.xml index fba08380b357f..b49b0d12f28bf 100644 --- a/sql/hive/pom.xml +++ b/sql/hive/pom.xml @@ -73,10 +73,6 @@ ${protobuf.version} --> - - ${hive.group} - hive-cli -