Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7C0E6200B4C for ; Fri, 22 Jul 2016 14:51:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7AD41160A5A; Fri, 22 Jul 2016 12:51:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EBCE2160A8E for ; Fri, 22 Jul 2016 14:51:21 +0200 (CEST) Received: (qmail 7242 invoked by uid 500); 22 Jul 2016 12:51:20 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 7225 invoked by uid 99); 22 Jul 2016 12:51:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2016 12:51:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A91BF2C0031 for ; Fri, 22 Jul 2016 12:51:20 +0000 (UTC) Date: Fri, 22 Jul 2016 12:51:20 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12774) s3a should use UGI.getCurrentUser.getShortname() for username MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 22 Jul 2016 12:51:22 -0000 [ https://issues.apache.org/jira/browse/HADOOP-12774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15389434#comment-15389434 ] Steve Loughran commented on HADOOP-12774: ----------------------------------------- John, do you have a patch here? if not, can you unassign it? > s3a should use UGI.getCurrentUser.getShortname() for username > ------------------------------------------------------------- > > Key: HADOOP-12774 > URL: https://issues.apache.org/jira/browse/HADOOP-12774 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 2.7.2 > Reporter: Steve Loughran > Assignee: John Zhuge > > S3a users {{System.getProperty("user.name")}} to get the username for the homedir. This is wrong, as it doesn't work on a YARN app where the identity is set by HADOOP_USER_NAME, or in a doAs clause. > Obviously, {{UGI.getCurrentUser.getShortname()}} provides that name, everywhere. > This is a simple change in the source, though testing is harder ... probably best to try in a doAs -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org