FAQ
Author: thejas
Date: Fri Aug 15 18:39:49 2014
New Revision: 1618256

URL: http://svn.apache.org/r1618256
Log:
HIVE-7169 : HiveServer2 in Http Mode should have a configurable IdleMaxTime timeout (Hari Sankar Sivarama Subramaniyan via Thejas Nair)

Modified:
     hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
     hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java

Modified: hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
URL: http://svn.apache.org/viewvc/hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java?rev=1618256&r1=1618255&r2=1618256&view=diff
==============================================================================
--- hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (original)
+++ hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java Fri Aug 15 18:39:49 2014
@@ -1472,6 +1472,8 @@ public class HiveConf extends Configurat
          "Minimum number of worker threads when in HTTP mode."),
      HIVE_SERVER2_THRIFT_HTTP_MAX_WORKER_THREADS("hive.server2.thrift.http.max.worker.threads", 500,
          "Maximum number of worker threads when in HTTP mode."),
+ HIVE_SERVER2_THRIFT_HTTP_MAX_IDLE_TIME("hive.server2.thrift.http.max.idle.time", 1800000,
+ "Maximum idle time in milliseconds for a connection on the server when in HTTP mode."),

      // binary transport settings
      HIVE_SERVER2_THRIFT_PORT("hive.server2.thrift.port", 10000,

Modified: hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java?rev=1618256&r1=1618255&r2=1618256&view=diff
==============================================================================
--- hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java (original)
+++ hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java Fri Aug 15 18:39:49 2014
@@ -95,10 +95,14 @@ public class ThriftHttpCLIService extend
          sslContextFactory.setKeyStorePassword(keyStorePassword);
          connector = new SslSelectChannelConnector(sslContextFactory);
        }
-
+
        connector.setPort(portNum);
        // Linux:yes, Windows:no
        connector.setReuseAddress(!Shell.WINDOWS);
+
+ int maxIdleTime = hiveConf.getIntVar(ConfVars.HIVE_SERVER2_THRIFT_HTTP_MAX_IDLE_TIME);
+ connector.setMaxIdleTime(maxIdleTime);
+
        httpServer.addConnector(connector);

        hiveAuthFactory = new HiveAuthFactory(hiveConf);

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedAug 15, '14 at 6:40p
activeAug 15, '14 at 6:40p
posts1
users1
websitehive.apache.org

1 user in discussion

Thejas: 1 post

People

Translate

site design / logo © 2021 Grokbase