hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-12774) s3a should use UGI.getCurrentUser.getShortname() for username
Date Fri, 07 Oct 2016 16:35:20 GMT

     [ 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:

$ ./hadoop fs -ls s3a://hwdev-steve-ireland/
Found 1 items
drwxrwxrwx   - stevel stevel          0 2016-10-07 17:29 s3a://hwdev-steve-ireland/tests

> 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

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message