hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhaojianbo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-13069) Making hadoop client proxy multi user in a process context
Date Thu, 28 Apr 2016 14:27:12 GMT

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

zhaojianbo updated HADOOP-13069:
--------------------------------
    Description: 
Now hadoop client can proxy an other user if setting HADOOP_PROXY_USER in the environment
parameters. But the mechanism can proxy only one user in a process context. The code is like:

  public synchronized 
  static UserGroupInformation getLoginUser() throws IOException {
    if (loginUser == null) {
      loginUserFromSubject(null);
    }
    return loginUser;
  }

The static variable loginUser cache the last login user.

But in some cases, we want to proxy multi users in one process context. It seems to be that
the current code is not support that.Is it?

Correct me if I'm wrong. 

  was:
Now hadoop client can proxy an other user if setting HADOOP_PROXY_USER in the environment
parameters. But the mechanism can proxy only one user in a process context. The code is like:
{quote}
  public synchronized 
  static UserGroupInformation getLoginUser() throws IOException {
    if (loginUser == null) {
      loginUserFromSubject(null);
    }
    return loginUser;
  }
{quote}
The static variable loginUser cache the last login user.

But in some cases, we want to proxy multi users in one process context. It seems to be that
the current code is not support that.Is it?

Correct me if I'm wrong. 


> Making hadoop client proxy multi user in a process context
> ----------------------------------------------------------
>
>                 Key: HADOOP-13069
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13069
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: zhaojianbo
>
> Now hadoop client can proxy an other user if setting HADOOP_PROXY_USER in the environment
parameters. But the mechanism can proxy only one user in a process context. The code is like:
>   public synchronized 
>   static UserGroupInformation getLoginUser() throws IOException {
>     if (loginUser == null) {
>       loginUserFromSubject(null);
>     }
>     return loginUser;
>   }
> The static variable loginUser cache the last login user.
> But in some cases, we want to proxy multi users in one process context. It seems to be
that the current code is not support that.Is it?
> Correct me if I'm wrong. 



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

Mime
View raw message