[ https://issues.apache.org/jira/browse/HADOOP-8457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402468#comment-13402468 ]
Bikas Saha commented on HADOOP-8457: ------------------------------------ 1) How was JobTracker.java working before this change? Seems to me that it would not have worked on the local FS for Windows. {code} if (!systemDirStatus.isOwnedByUser(getMROwner())) {{code} 2) UpgradeUtilities.java - Why does the parent permission need to be set here. {code} File parent = new File(parents[i]); File newDir = new File(parents[i], dirName); Configuration conf = new Configuration(); createEmptyDirs(new String[] {newDir.toString()}); FileUtil.setPermission(parent, new FsPermission(defaultPermissions)); LocalFileSystem localFS = FileSystem.getLocal(conf); {code} 3) I am hoping we will be able to replace the "755"s with a some public static final name. > Address file ownership issue for users in Administrators group on Windows. > -------------------------------------------------------------------------- > > Key: HADOOP-8457 > URL: https://issues.apache.org/jira/browse/HADOOP-8457 > Project: Hadoop Common > Issue Type: Bug > Components: native > Affects Versions: 1.1.0, 0.24.0 > Reporter: Chuan Liu > Assignee: Ivan Mitic > Priority: Minor > Attachments: HADOOP-8457-branch-1-win_Admins.patch > > > On Linux, the initial file owners are the creators. (I think this is true in > general. If there are exceptions, please let me know.) On Windows, the file > created by a user in the Administrators group has the initial owner > ‘Administrators’, i.e. the the Administrators group is the initial owner of > the file. As a result, this leads to an exception when we check file > ownership in SecureIOUtils .checkStat() method. As a result, this method is > disabled right now. We need to address this problem and enable the method on > Windows. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira