Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10762

Config parameter 'fs.permissions.umask-mode' with value 0002 doesn't have any affect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: conf

      Description

      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.

      @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);
      
      .....
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              svetozari Svetozar Ivanov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: