You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "shanyu zhao (JIRA)" <ji...@apache.org> on 2016/05/29 06:39:13 UTC

[jira] [Updated] (HIVE-13888) Hive shims impersonate the same user if HADOOP_USER_NAME is the current user

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

shanyu zhao updated HIVE-13888:
-------------------------------
    Attachment: HIVE-13888.patch

patch attached.

> Hive shims impersonate the same user if HADOOP_USER_NAME is the current user
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-13888
>                 URL: https://issues.apache.org/jira/browse/HIVE-13888
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>            Reporter: shanyu zhao
>         Attachments: HIVE-13888.patch
>
>
> Hive shims provides a getUGI() method, which creates proxy user for impersonation if HADOOP_USER_NAME is present in environment. If HADOOP_USER_NAME equals to current login user, it is not necessary to create a proxy user.
> It is troublesome in a Hadoop cluster where impersonation is not allowed, and one tries to run hive code in a container where HADOOP_USER_NAME is set. RM will throw Exception: User XXX is not allowed to impersonate XXX.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)