hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3890) filecontext mkdirs doesn't apply umask as expected
Date Thu, 06 Sep 2012 14:23:08 GMT

     [ https://issues.apache.org/jira/browse/HDFS-3890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daryn Sharp updated HDFS-3890:
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0-alpha
                   3.0.0
                   0.23.3
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

I've committed to trunk, branch 2 & 23.3.  Thanks Tom!
                
> filecontext mkdirs doesn't apply umask as expected
> --------------------------------------------------
>
>                 Key: HDFS-3890
>                 URL: https://issues.apache.org/jira/browse/HDFS-3890
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.23.3
>            Reporter: Thomas Graves
>            Assignee: Thomas Graves
>            Priority: Critical
>             Fix For: 0.23.3, 3.0.0, 2.2.0-alpha
>
>         Attachments: HDFS-3890.patch, HDFS-3890.patch, HDFS-3890.patch
>
>
> I was attempting to set the umask of my fileContext and then do a mkdirs, but the umask
wasn't applied as expected. 
> doneDirFc = FileContext.getFileContext(doneDirPrefixPath.toUri(), conf);
> doneDirFc.setUMask(JobHistoryUtils.HISTORY_DONE_DIR_UMASK);
> doneDirFc.mkdir(path, fsp, true);
> It appears to be using the default umask set in the conf (fs.permissions.umask-mode)
and overrode the umask I set in fileContext. I had the default umask set to 077 and set the
filecontext umask to 007.  The permissions on the directories it created were all rwx------.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message