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

Pluggable HttpRequestInterceptor for Hive JDBC

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.2
    • None
    • JDBC
    • Hide
      The HiveServer2 JDBC Connection URL will accept an additional session variable "http.interceptor" that allows client to pass in the class name.
      Example: http.interceptor=com.example.UserInterceptor
      Show
      The HiveServer2 JDBC Connection URL will accept an additional session variable "http.interceptor" that allows client to pass in the class name. Example: http.interceptor=com.example.UserInterceptor

    Description

      Allows client to pass in the name of a customize HttpRequestInterceptor, instantiate the class and adds it to HttpClient.

      Example usage: We would like to pass in a HttpRequestInterceptor for OAuth2.0 Authentication purpose. The HttpRequestInterceptor will acquire and/or refresh the access token and add it as authentication header each time HiveConnection sends the HttpRequest.

      Attachments

        Issue Links

          Activity

            People

              yyingwang Ying Wang
              yyingwang Ying Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h