From 394b4716daefd76cf99b6eb0f90c37b23cfa12d1 Mon Sep 17 00:00:00 2001 From: Kent Yao Date: Sun, 16 Jul 2017 23:52:37 +0800 Subject: [PATCH 1/9] set isolateOn to false while using builtin hive jars --- .../src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala index a29d7a7565ee..43522daed455 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala @@ -312,7 +312,7 @@ private[spark] object HiveUtils extends Logging { hadoopConf = hadoopConf, execJars = jars.toSeq, config = configurations, - isolationOn = true, + isolationOn = false, barrierPrefixes = hiveMetastoreBarrierPrefixes, sharedPrefixes = hiveMetastoreSharedPrefixes) } else if (hiveMetastoreJars == "maven") { From 62049f50c6decbec90bf72fa7ea8cfd0a1347ce2 Mon Sep 17 00:00:00 2001 From: Kent Yao Date: Mon, 17 Jul 2017 11:13:48 +0800 Subject: [PATCH 2/9] add unit tests --- sql/hive/pom.xml | 5 ++ .../spark/sql/hive/HiveUtilsSuite.scala | 48 +++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/sql/hive/pom.xml b/sql/hive/pom.xml index f9462e79a69f..538329c21b46 100644 --- a/sql/hive/pom.xml +++ b/sql/hive/pom.xml @@ -98,6 +98,11 @@ ${hive.group} hive-metastore + + ${hive.group} + hive-cli + test +