From 5b64e3c2be8c7ec02d4c2ff574c7f513ed45ebf1 Mon Sep 17 00:00:00 2001 From: Chris Nauroth Date: Wed, 3 Jul 2013 05:15:21 +0000 Subject: [PATCH] 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 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/mapreduce/JobSubmissionFiles.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index a7fc140c83..3ee572e516 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -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) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobSubmissionFiles.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobSubmissionFiles.java index a4ea1d80a0..7e0453d3bf 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobSubmissionFiles.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobSubmissionFiles.java @@ -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; }