Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
Reviewed
Description
Simple implementation of TCP KeepAlive and socket timeout for the HiveServer in order to avoid half open connections or connection drops during long running queries that use HiveServer.
Two new settings have been added in order to control this functionality.
<property> <name>hive.server.read.socket.timeout</name> <value>10</value> <description>Timeout for the HiveServer to close the connection if no response from the client in N seconds, defaults to 10 seconds.</description> </property> <property> <name>hive.server.tcp.keepalive</name> <value>true</value> <description>Whether to enable TCP keepalive for the HiveServer. Keepalive will prevent accumulation of half-open connections.</description> </property>