MAPREDUCE-5357. Job staging directory owner checking could fail on Windows.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1499210 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Nauroth 2013-07-03 05:15:21 +00:00
parent 06ea8ffcf2
commit 5b64e3c2be
2 changed files with 4 additions and 0 deletions

View File

@ -606,6 +606,9 @@ Release 2.1.0-beta - 2013-07-02
MAPREDUCE-5359. JobHistory should not use File.separator to match timestamp
in path. (Chuan Liu via cnauroth)
MAPREDUCE-5357. Job staging directory owner checking could fail on Windows.
(Chuan Liu via cnauroth)
MAPREDUCE-5291. Change MR App to use updated property names in
container-log4j.properties. (Zhijie Shen via sseth)

View File

@ -124,6 +124,7 @@ public static Path getStagingDir(Cluster cluster, Configuration conf)
} else {
fs.mkdirs(stagingArea,
new FsPermission(JOB_DIR_PERMISSION));
fs.setOwner(stagingArea, currentUser, null);
}
return stagingArea;
}