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 751B1200B9A for ; Fri, 7 Oct 2016 18:35:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 73EC1160AC6; Fri, 7 Oct 2016 16:35: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 AFD54160AE8 for ; Fri, 7 Oct 2016 18:35:21 +0200 (CEST) Received: (qmail 41538 invoked by uid 500); 7 Oct 2016 16:35: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 41417 invoked by uid 99); 7 Oct 2016 16:35:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 16:35:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9B1CD2C0D52 for ; Fri, 7 Oct 2016 16:35:20 +0000 (UTC) Date: Fri, 7 Oct 2016 16:35:20 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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, 07 Oct 2016 16:35:22 -0000 [ https://issues.apache.org/jira/browse/HADOOP-12774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Loughran updated HADOOP-12774: ------------------------------------ Status: Patch Available (was: Open) Created a PR which uses the current user *at time of FS initialization* shortname for the user and group on all FileStatus instances created during the FS life. Testing: all of s3a tests against s3a ireland, and the command line: {code} $ ./hadoop fs -ls s3a://hwdev-steve-ireland/ Found 1 items drwxrwxrwx - stevel stevel 0 2016-10-07 17:29 s3a://hwdev-steve-ireland/tests {code} > 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 > > 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