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

Allow JDBC Driver to pass HTTP header Key/Value pairs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: Beeline
    • Labels:
      None

      Description

      Currently Beeline & ODBC driver does not support carrying user specified HTTP header.
      The beeline JDBC driver in HTTP mode connection string is as
      jdbc:hive2://<host>:<port>/<db>?hive.server2.transport.mode=http;hive.server2.thrift.http.path=<http_endpoint>,
      When transport mode is http Beeline/ODBC driver should allow end user to send arbitrary HTTP Header name value pair.
      All the beeline driver needs to do is to use the user specified name values and call the underlying HTTPClient API to set the header.
      E.g the Beeline connection string could be jdbc:hive2://<host>:<port>/<db>?hive.server2.transport.mode=http;hive.server2.thrift.http.path=<http_endpoint>,http.header.name1=value1,
      And the beeline will call underlying to set HTTP header to name1 and value1

      This is required for the end user to send identity in a HTTP header down to Knox via beeline.

        Attachments

        1. HIVE-10339.2.patch
          19 kB
          Hari Sankar Sivarama Subramaniyan
        2. HIVE-10339.1.patch
          15 kB
          Hari Sankar Sivarama Subramaniyan

          Issue Links

            Activity

              People

              • Assignee:
                hsubramaniyan Hari Sankar Sivarama Subramaniyan
                Reporter:
                hsubramaniyan Hari Sankar Sivarama Subramaniyan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: