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

[hive] branch master updated: HIVE-26541: NPE when starting WebHCat Service (Zhiguo Wu reviewed by Stamatis Zampetakis)

This is an automated email from the ASF dual-hosted git repository.

zabetak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 05afad7184b HIVE-26541: NPE when starting WebHCat Service (Zhiguo Wu reviewed by Stamatis Zampetakis)
05afad7184b is described below

commit 05afad7184b8f342b7442d517a56a5a35b75b53f
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Tue Aug 23 14:36:06 2022 +0800

    HIVE-26541: NPE when starting WebHCat Service (Zhiguo Wu reviewed by Stamatis Zampetakis)
    
    Closes #3543
---
 .../svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java b/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java
index 95147883640..d2776ffbfd1 100644
--- a/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java
+++ b/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java
@@ -249,7 +249,7 @@ public class Main {
     low.setLowResourcesIdleTimeout(10000);
     server.addBean(low);
 
-    server.addConnector(createChannelConnector());
+    server.setConnectors(new Connector[]{ createChannelConnector(server) });
 
     // Start the server
     server.start();
@@ -276,7 +276,7 @@ public class Main {
    Create a channel connector for "http/https" requests.
    */
 
-  private Connector createChannelConnector() {
+  private Connector createChannelConnector(Server server) {
     ServerConnector connector;
     final HttpConfiguration httpConf = new HttpConfiguration();
     httpConf.setRequestHeaderSize(1024 * 64);