From b78f98606ec8b0f0fd3bf49a9ecfdea8bb83eaf9 Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Wed, 14 Dec 2016 16:04:48 -0800 Subject: [PATCH] [SPARK-18867] [SQL] Throw cause if IsolatedClientLoad can't create client --- .../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 a72a13b778e2..70e8c222ad8d 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 @@ -272,7 +272,7 @@ private[hive] class IsolatedClientLoader( "Please make sure that jars for your version of hive and hadoop are included in the " + s"paths passed to ${HiveUtils.HIVE_METASTORE_JARS.key}.", e) } else { - throw e + throw e.getCause() } } finally { Thread.currentThread.setContextClassLoader(origLoader)