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

Pluggable HttpRequestInterceptor for Hive JDBC

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yyingwang Ying Wang Assign to me
            yyingwang Ying Wang

            Dates

              Created:
              Updated:

              Time Tracking

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

              Slack

                Issue deployment