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

TCP KeepAlive and connection timeout for the HiveServer

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Server Infrastructure
    • Labels:
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: