Merge -r 1165889:1165890 from trunk to branch-0.23 to fix MAPREDUCE-2687.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1165891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2011-09-06 21:50:44 +00:00
parent 65d5b0b9d3
commit 301e322096
2 changed files with 6 additions and 2 deletions

View File

@ -1198,6 +1198,9 @@ Release 0.23.0 - Unreleased
MAPREDUCE-2882. TestLineRecordReader depends on ant jars. (todd)
MAPREDUCE-2687. Fix NodeManager to use the right version of
LocalDirAllocator.getLocalPathToWrite. (mahadev & acmurthy)
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -100,7 +100,8 @@ public class ContainerLaunch implements Callable<Integer> {
String appIdStr = app.toString();
Path containerLogDir =
this.logDirsSelector.getLocalPathForWrite(appIdStr + Path.SEPARATOR
+ containerIdStr, LocalDirAllocator.SIZE_UNKNOWN, this.conf);
+ containerIdStr, LocalDirAllocator.SIZE_UNKNOWN, this.conf,
false);
for (String str : command) {
// TODO: Should we instead work via symlinks without this grammar?
newCmds.add(str.replace(ApplicationConstants.LOG_DIR_EXPANSION_VAR,
@ -147,7 +148,7 @@ public class ContainerLaunch implements Callable<Integer> {
+ Path.SEPARATOR + user + Path.SEPARATOR
+ ContainerLocalizer.APPCACHE + Path.SEPARATOR + appIdStr
+ Path.SEPARATOR + containerIdStr,
LocalDirAllocator.SIZE_UNKNOWN, this.conf);
LocalDirAllocator.SIZE_UNKNOWN, this.conf, false);
try {
// /////////// Write out the container-script in the nmPrivate space.
String[] localDirs =