Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-3590

TCP KeepAlive and connection timeout for the HiveServer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.10.0
    • Server Infrastructure
    • 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>
      

      Attachments

        1. HIVE-3590.2.patch
          4 kB
          Esteban Gutierrez
        2. HIVE-3590.1.patch
          4 kB
          Esteban Gutierrez

        Activity

          People

            esteban Esteban Gutierrez
            esteban Esteban Gutierrez
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: