You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Bo Cui (Jira)" <ji...@apache.org> on 2022/03/01 09:51:00 UTC

[jira] [Comment Edited] (HIVE-15579) Support HADOOP_PROXY_USER for secure impersonation in hive metastore client

    [ https://issues.apache.org/jira/browse/HIVE-15579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499418#comment-17499418 ] 

Bo Cui edited comment on HIVE-15579 at 3/1/22, 9:50 AM:
--------------------------------------------------------

hi [~nanda] [~thejas] 

Why is RealUser called? In most cases, the LoginUser's RealUser is null.

https://github.com/apache/hive/blob/bf69b32c878c0d53f242cc38b6634c8ee4346e76/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java#L243

 

UserGroupInformation ugi = UserGroupInformation.createProxyUser(proxyUserA, realUserB )

i think proxyUserA is `UserGroupInformation.getCurrentUser()` and  realUserB is `UserGroupInformation.getCurrentUser().getRealUser()`

 


was (Author: bo cui):
hi [~nanda] [~thejas] 

Why is RealUser called? In most cases, the LoginUser's RealUser is null.

!image-2022-03-01-17-45-03-213.png!

 

UserGroupInformation ugi = UserGroupInformation.createProxyUser(proxyUserA, realUserB )

i think proxyUserA is `UserGroupInformation.getCurrentUser()` and  realUserB is `UserGroupInformation.getCurrentUser().getRealUser()`

 

> Support HADOOP_PROXY_USER for secure impersonation in hive metastore client
> ---------------------------------------------------------------------------
>
>                 Key: HIVE-15579
>                 URL: https://issues.apache.org/jira/browse/HIVE-15579
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Thejas Nair
>            Assignee: Nandakumar
>            Priority: Major
>              Labels: TODOC2.2
>             Fix For: 2.3.0
>
>         Attachments: HIVE-15579.000.patch, HIVE-15579.001.patch, HIVE-15579.002.patch, HIVE-15579.003.patch, HIVE-15579.003.patch
>
>
> Hadoop clients support HADOOP_PROXY_USER for secure impersonation. It would be useful to have similar feature for hive metastore client.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)