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

Allow Proxy Users in Hive Metastore Client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Metastore

    Description

      We should allow proxy users in the Hive Metastore client.  Proxy user impersonation should work for Hive just as it is working for HDFS

      Currently the client uses

      UserGroupInformation.getLoginUser().getRealUser().doAs

      which results in a NullPointerException when a proxy user is used, as `getRealUser()` returns `null`. 

       

      Allowing the current user to only requires dropping `getRealUser()` for the `doAs()`. foo 

      UserGroupInformation.getLoginUser().doAs

       

      Attachments

        Issue Links

          Activity

            People

              svaughan Steve Vaughan
              svaughan Steve Vaughan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: