You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2016/03/24 15:48:25 UTC

[jira] [Commented] (HADOOP-12774) s3a should use UGI.getCurrentUser.getShortname() for username

    [ https://issues.apache.org/jira/browse/HADOOP-12774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15210331#comment-15210331 ] 

Steve Loughran commented on HADOOP-12774:
-----------------------------------------

probably

> 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)