You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sz...@apache.org on 2015/04/23 04:34:28 UTC

[19/44] hive git commit: HIVE-9916 - Fix TestSparkSessionManagerImpl [Spark Branch] (Chao via Xuefu)

HIVE-9916 - Fix TestSparkSessionManagerImpl [Spark Branch] (Chao via Xuefu)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/spark@1666034 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/master
Commit: 1a51c169567d32bc4e9a49e961517a69693405e3
Parents: 223404c
Author: Sun Chao <su...@apache.org>
Authored: Wed Mar 11 23:09:41 2015 +0000
Committer: Szehon Ho <sz...@cloudera.com>
Committed: Wed Apr 22 19:33:51 2015 -0700

----------------------------------------------------------------------
 .../hive/ql/exec/spark/session/TestSparkSessionManagerImpl.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/1a51c169/ql/src/test/org/apache/hadoop/hive/ql/exec/spark/session/TestSparkSessionManagerImpl.java
----------------------------------------------------------------------
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/exec/spark/session/TestSparkSessionManagerImpl.java b/ql/src/test/org/apache/hadoop/hive/ql/exec/spark/session/TestSparkSessionManagerImpl.java
index e74ed87..4d93ea6 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/exec/spark/session/TestSparkSessionManagerImpl.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/exec/spark/session/TestSparkSessionManagerImpl.java
@@ -42,6 +42,7 @@ public class TestSparkSessionManagerImpl {
   @Test
   public void testSingleSessionMultipleUse() throws Exception {
     HiveConf conf = new HiveConf();
+    conf.set("spark.master", "local");
 
     SparkSessionManager sessionManager = SparkSessionManagerImpl.getInstance();
     SparkSession sparkSession1 = sessionManager.getSession(null, conf, true);
@@ -68,6 +69,8 @@ public class TestSparkSessionManagerImpl {
     sessionManagerHS2.shutdown();
 
     HiveConf hiveConf = new HiveConf();
+    hiveConf.set("spark.master", "local");
+
     sessionManagerHS2.setup(hiveConf);
 
     List<Thread> threadList = new ArrayList<Thread>();
@@ -105,6 +108,8 @@ public class TestSparkSessionManagerImpl {
         String threadName = Thread.currentThread().getName();
         System.out.println(threadName + " started.");
         HiveConf conf = new HiveConf();
+        conf.set("spark.master", "local");
+
         SparkSession prevSession = null;
         SparkSession currentSession = null;