hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12774) s3a should use UGI.getCurrentUser.getShortname() for username
Date Tue, 25 Oct 2016 07:25:58 GMT

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

Hudson commented on HADOOP-12774:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10671 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/10671/])
HADOOP-12774. s3a should use UGI.getCurrentUser.getShortname() for (cnauroth: rev 3372e940303149d6258e0b72c54d72f080f0daa2)
* (edit) hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
* (edit) hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AConfiguration.java
* (edit) hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AUtils.java
* (edit) hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileStatus.java
* (edit) hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/Listing.java


> 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: Steve Loughran
>             Fix For: 2.8.0, 3.0.0-alpha2
>
>
> 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


Mime
View raw message