MAPREDUCE-4612. job summary file permissions not set when its created (tgraves via bobby)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1379584 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Joseph Evans 2012-08-31 20:25:27 +00:00
parent 60b8c6e1e1
commit 015256524c
2 changed files with 6 additions and 1 deletions

View File

@ -323,6 +323,9 @@ Release 2.1.0-alpha - Unreleased
MAPREDUCE-4380. Empty Userlogs directory is getting created under logs MAPREDUCE-4380. Empty Userlogs directory is getting created under logs
directory (Devaraj K via bobby) directory (Devaraj K via bobby)
MAPREDUCE-4612. job summary file permissions not set when its created
(tgraves via bobby)
Release 2.0.0-alpha - 05-23-2012 Release 2.0.0-alpha - 05-23-2012
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -661,6 +661,8 @@ public class JobHistoryEventHandler extends AbstractService
summaryFileOut = doneDirFS.create(qualifiedSummaryDoneFile, true); summaryFileOut = doneDirFS.create(qualifiedSummaryDoneFile, true);
summaryFileOut.writeUTF(mi.getJobSummary().getJobSummaryString()); summaryFileOut.writeUTF(mi.getJobSummary().getJobSummaryString());
summaryFileOut.close(); summaryFileOut.close();
doneDirFS.setPermission(qualifiedSummaryDoneFile, new FsPermission(
JobHistoryUtils.HISTORY_INTERMEDIATE_FILE_PERMISSIONS));
} catch (IOException e) { } catch (IOException e) {
LOG.info("Unable to write out JobSummaryInfo to [" LOG.info("Unable to write out JobSummaryInfo to ["
+ qualifiedSummaryDoneFile + "]", e); + qualifiedSummaryDoneFile + "]", e);