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

FileContext.mkdir(..) causes a loss of setgid permission of directory created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.23.0
    • None
    • fs, util
    • None

    Description

      When FileContext.mkdir(..) is used to create a directory inside a parent directory (which has the setgid permission), the created directory loses the setgid permission.

      We have noticed that in ContainerLocalizer.java:

        private static void initDirs(Configuration conf, String user, String appId,
            FileContext lfs, List<Path> localDirs) throws IOException {
             .
             .
            // $x/usercache/$user/appcache/$appId/output
            lfs.mkdir(new Path(appBase, OUTPUTDIR), null, false);
             .
             .
        }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ahmed.radwan Ahmed Radwan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: