You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pr...@apache.org on 2015/09/25 20:31:25 UTC

hive git commit: HIVE-11963: Llap: Disable web app for mini llap tests (Prasanth Jayachandran reviewed by Sergey Shelukhin)

Repository: hive
Updated Branches:
  refs/heads/llap f84eefa52 -> 3b64bd6c1


HIVE-11963: Llap: Disable web app for mini llap tests (Prasanth Jayachandran reviewed by Sergey Shelukhin)


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

Branch: refs/heads/llap
Commit: 3b64bd6c1a4838937aff451ab829529fe0be9521
Parents: f84eefa
Author: Prasanth Jayachandran <j....@gmail.com>
Authored: Fri Sep 25 13:31:09 2015 -0500
Committer: Prasanth Jayachandran <j....@gmail.com>
Committed: Fri Sep 25 13:31:09 2015 -0500

----------------------------------------------------------------------
 .../org/apache/hadoop/hive/llap/daemon/impl/LlapDaemon.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/3b64bd6c/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapDaemon.java
----------------------------------------------------------------------
diff --git a/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapDaemon.java b/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapDaemon.java
index 9139de6..6f75001 100644
--- a/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapDaemon.java
+++ b/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapDaemon.java
@@ -177,8 +177,12 @@ public class LlapDaemon extends CompositeService implements ContainerRunner, Lla
 
     this.registry = new LlapRegistryService(true);
     addIfService(registry);
-    this.webServices = new LlapWebServices();
-    addIfService(webServices);
+    if (HiveConf.getBoolVar(daemonConf, HiveConf.ConfVars.HIVE_IN_TEST)) {
+      this.webServices = null;
+    } else {
+      this.webServices = new LlapWebServices();
+      addIfService(webServices);
+    }
     // Bring up the server only after all other components have started.
     addIfService(server);
     // AMReporter after the server so that it gets the correct address. It knows how to deal with