[
https://issues.apache.org/jira/browse/HIVE-28209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shohei Okumiya resolved HIVE-28209.
-----------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
I resolved this ticket with fix version = 4.1.0, as it has been merged. cc:
[~zhangbutao]
https://github.com/apache/hive/pull/5233
> Allow Proxy Users in Hive Metastore Client
> ------------------------------------------
>
> Key: HIVE-28209
> URL: https://issues.apache.org/jira/browse/HIVE-28209
> Project: Hive
> Issue Type: Improvement
> Components: Metastore
> Reporter: Steve Vaughan
> Assignee: Steve Vaughan
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> 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
> {code:java}
> UserGroupInformation.getLoginUser().getRealUser().doAs{code}
> 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
> {code:java}
> UserGroupInformation.getLoginUser().doAs{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)