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 LlapDaemon(Configuration daemonConf, int numExecutors, long executorMemor 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