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 "Svetozar Ivanov (JIRA)" <ji...@apache.org> on 2014/06/27 19:48:24 UTC

[jira] [Updated] (HADOOP-10762) Config parameter 'fs.permissions.umask-mode' with value 0002 doesn't have any affect

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

Svetozar Ivanov updated HADOOP-10762:
-------------------------------------

    Affects Version/s: 2.4.0

> Config parameter 'fs.permissions.umask-mode' with value 0002 doesn't have any affect
> ------------------------------------------------------------------------------------
>
>                 Key: HADOOP-10762
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10762
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 2.4.0
>            Reporter: Svetozar Ivanov
>
> When is set parameter 'fs.permissions.umask-mode' with value 0002 
> org.apache.hadoop.fs.FileContext always use internally 0022. 
> After investigation found that org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService->serviceInit(Configuration conf) sets always FsPermission.DEFAULT_UMASK value.
> {code}
> @Override
>   public void serviceInit(Configuration conf) throws Exception {
>     this.validateConf(conf);
>     this.publicRsrc =
>         new LocalResourcesTrackerImpl(null, dispatcher, true, conf);
>     this.recordFactory = RecordFactoryProvider.getRecordFactory(conf);
>     try {
>       FileContext lfs = getLocalFileContext(conf);
>       lfs.setUMask(new FsPermission((short)FsPermission.DEFAULT_UMASK));
>       cleanUpLocalDir(lfs,delService);
> .....
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)