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

JDBC: Implement Gzip compression for HTTP mode

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: HiveServer2, JDBC
    • Labels:

      Description

      POST /cliservice HTTP/1.1
      Content-Type: application/x-thrift
      Accept: application/x-thrift
      User-Agent: Java/THttpClient/HC
      Authorization: Basic YW5vbnltb3VzOmFub255bW91cw==
      Content-Length: 71
      Host: localhost:10007
      Connection: Keep-Alive
      Accept-Encoding: gzip,deflate
      X-XSRF-HEADER: true
      

      The Beeline client clearly sends out HTTP compression headers which are ignored by the HTTP service layer in HS2.

      After patch, result looks like

      HTTP/1.1 200 OK
      Date: Tue, 01 Aug 2017 01:47:23 GMT
      Content-Type: application/x-thrift
      Vary: Accept-Encoding, User-Agent
      Content-Encoding: gzip
      Transfer-Encoding: chunked
      Server: Jetty(9.3.8.v20160314)
      

        Attachments

        1. HIVE-17194.3.patch
          3 kB
          Gopal V
        2. HIVE-17194.2.patch
          8 kB
          Gopal V
        3. HIVE-17194.1.patch
          8 kB
          Gopal V

          Issue Links

            Activity

              People

              • Assignee:
                gopalv Gopal V
                Reporter:
                gopalv Gopal V
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: