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

RawLocalFileSystem#mkdir and create should honor umask

    XMLWordPrintableJSON

Details

    • Incompatible change

    Description

      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.

      Attachments

        1. HADOOP-11347.001.patch
          14 kB
          Varun Saxena
        2. HADOOP-11347.002.patch
          18 kB
          Varun Saxena
        3. HADOOP-11347.004.patch
          9 kB
          Varun Saxena
        4. HADOOP-11347.03.patch
          15 kB
          Varun Saxena
        5. HADOOP-11347.05.patch
          9 kB
          Varun Saxena

        Issue Links

          Activity

            People

              varun_saxena Varun Saxena
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: