[ 
https://issues.apache.org/jira/browse/HIVE-28209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Vaughan updated HIVE-28209:
---------------------------------
    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
{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()`
UserGroupInformation.getLoginUser().doAs

  was:
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()`
```
UserGroupInformation.getLoginUser().doAs
```


> 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
>
> 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()`
> UserGroupInformation.getLoginUser().doAs



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to