From common-issues-return-107949-apmail-hadoop-common-issues-archive=hadoop.apache.org@hadoop.apache.org Thu Apr 28 14:27:14 2016 Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C48D190D2 for ; Thu, 28 Apr 2016 14:27:14 +0000 (UTC) Received: (qmail 61159 invoked by uid 500); 28 Apr 2016 14:27:13 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 60938 invoked by uid 500); 28 Apr 2016 14:27:13 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 60850 invoked by uid 99); 28 Apr 2016 14:27:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2016 14:27:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E11F82C1F60 for ; Thu, 28 Apr 2016 14:27:12 +0000 (UTC) Date: Thu, 28 Apr 2016 14:27:12 +0000 (UTC) From: "zhaojianbo (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13069) Making hadoop client proxy multi user in a process context MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)