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 "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2015/06/09 02:50:00 UTC

[jira] [Updated] (HADOOP-11347) RawLocalFileSystem#mkdir and create should honor umask

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

Colin Patrick McCabe updated HADOOP-11347:
------------------------------------------
    Summary: RawLocalFileSystem#mkdir and create should honor umask  (was: Inconsistent enforcement of umask between FileSystem and FileContext interacting with local file system.)

> RawLocalFileSystem#mkdir and create should honor umask
> ------------------------------------------------------
>
>                 Key: HADOOP-11347
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11347
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.7.0
>            Reporter: Chris Nauroth
>            Assignee: Varun Saxena
>              Labels: BB2015-05-RFC, incompatible
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-11347.001.patch, HADOOP-11347.002.patch, HADOOP-11347.004.patch, HADOOP-11347.03.patch, HADOOP-11347.05.patch
>
>
> The {{FileSystem}} and {{FileContext}} APIs are inconsistent in enforcement of umask for newly created directories.  {{FileContext}} utilizes configuration property {{fs.permissions.umask-mode}} and runs a separate {{chmod}} call to guarantee bypassing the process umask.  This is the expected behavior for Hadoop as discussed in the documentation of {{fs.permissions.umask-mode}}.  For the equivalent {{FileSystem}} APIs, it does not use {{fs.permissions.umask-mode}}.  Instead, the permissions end up getting controlled by the process umask.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)