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

Webhcat beeline in secure mode

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • WebHCat
    • None
    • Reviewed

    Description

      Follow up HIVE-20550, we need to make beeline work in secure mode. That means, we need to get a delegation token from hiveserver2, and pass that to beeline. This is similar to HIVE-5133, I make two changes:
      1. Make a jdbc connection to hs2, pull delegation token from HiveConnection, and pass along
      2. In hive jdbc driver, check for token file in HADOOP_TOKEN_FILE_LOCATION, and extract delegation token if exists

      There's one config needed in webhcat-site.xml, to point "templeton.hive.hs2.url" to hive jdbc url.

      Attachments

        1. HIVE-21247.1.patch
          16 kB
          Daniel Dai
        2. HIVE-21247.2.patch
          17 kB
          Daniel Dai

        Issue Links

        Activity

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

          People

            daijy Daniel Dai Assign to me
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment