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/master Commit: 3b64bd6c1a4838937aff451ab829529fe0be9521 Parents: f84eefa Author: Prasanth Jayachandran <[email protected]> Authored: Fri Sep 25 13:31:09 2015 -0500 Committer: Prasanth Jayachandran <[email protected]> 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
