diff --git common/src/java/org/apache/hive/http/HttpServer.java common/src/java/org/apache/hive/http/HttpServer.java index 0aa9c89..6edfdcc 100644 --- common/src/java/org/apache/hive/http/HttpServer.java +++ common/src/java/org/apache/hive/http/HttpServer.java @@ -193,7 +193,7 @@ public void stop() throws Exception { } public int getPort() { - return port; + return webServer.getConnectors()[0].getLocalPort(); } /**