MAPREDUCE-4793. Problem with adding resources when using both -files and -file to hadoop streaming. Contributed by Jason Lowe
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1425177 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
92692c863c
commit
40c3b7f0b2
|
@ -635,6 +635,9 @@ Release 0.23.6 - UNRELEASED
|
|||
MAPREDUCE-4833. Task can get stuck in FAIL_CONTAINER_CLEANUP (Robert
|
||||
Parker via jlowe)
|
||||
|
||||
MAPREDUCE-4793. Problem with adding resources when using both -files and
|
||||
-file to hadoop streaming (jlowe)
|
||||
|
||||
Release 0.23.5 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -306,7 +306,13 @@ public class StreamJob implements Tool {
|
|||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
config_.set("tmpfiles", config_.get("tmpfiles", "") + fileList);
|
||||
String tmpFiles = config_.get("tmpfiles", "");
|
||||
if (tmpFiles.isEmpty()) {
|
||||
tmpFiles = fileList.toString();
|
||||
} else {
|
||||
tmpFiles = tmpFiles + "," + fileList;
|
||||
}
|
||||
config_.set("tmpfiles", tmpFiles);
|
||||
validate(packageFiles_);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue