hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-87) NM ResourceLocalizationService does not set permissions of local cache directories
Date Wed, 05 Sep 2012 23:51:07 GMT

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

Jason Lowe updated YARN-87:
---------------------------

    Attachment: YARN-87.patch

Quick patch to fix the permissions of the cache directories when they are created.

I suspect this isn't the end of the story, as everywhere the NM grabs a FileSystem/FileContext
it will have to ensure the umask is permissive enough to allow it to set permissions properly.
 Simply grabbing a FileContext and specifying permissions of 0750 won't help if the config
sets the umask of that FileContext to 0077.
                
> NM ResourceLocalizationService does not set permissions of local cache directories
> ----------------------------------------------------------------------------------
>
>                 Key: YARN-87
>                 URL: https://issues.apache.org/jira/browse/YARN-87
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 2.1.0-alpha, 0.23.3
>            Reporter: Jason Lowe
>            Assignee: Jason Lowe
>            Priority: Critical
>         Attachments: YARN-87.patch
>
>
> {{ResourceLocalizationService}} creates a file cache and user cache directory when it
starts up but doesn't specify the permissions for them when they are created.  If the cluster
configs are set to limit the default permissions (e.g.: fs.permissions.umask-mode=0077 instead
of the default 0022), then the cache directories are created with too-restrictive permissions
and no jobs are able to run.

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