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

Pass credentials in the current UGI while creating Tez session

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

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Tez
    • None

    Description

      The credentials present in the current UGI i.e. UserGroupInformation.getCurrentUser().getCredentials() isn't passed to the Tez session. It is instantiated with null credentials.

      session = TezClient.create("HIVE-" + sessionId, tezConfig, true,
      commonLocalResources, null);

      In this case, tokens added using hive execution hooks, aren't available to Tez even if they are available in memory.

      Attachments

        1. HIVE-12977.1.patch
          2 kB
          Vinoth Sathappan
        2. HIVE-12977.1.patch
          2 kB
          Vinoth Sathappan
        3. HIVE-12977.2.patch
          2 kB
          Vinoth Sathappan
        4. HIVE-12977.3.patch
          2 kB
          Vinoth Sathappan
        5. HIVE-12977.4.patch
          2 kB
          Vinoth Sathappan

        Activity

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

          People

            vinoths Vinoth Sathappan Assign to me
            vinoths Vinoth Sathappan

            Dates

              Created:
              Updated:

              Slack

                Issue deployment