MAPREDUCE-5006. Fix failing streaming tests due to MAPREDUCE-4994. Contributed by Sandy Ryza.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1461537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8a21e3925c
commit
b1c781b2be
|
@ -110,6 +110,9 @@ Release 2.0.5-beta - UNRELEASED
|
|||
MAPREDUCE-3757. [Rumen] Fixed Rumen Folder to adjust shuffleFinished and
|
||||
sortFinished times when needed. (Ravi Gummadi via tgraves)
|
||||
|
||||
MAPREDUCE-5006. Fix failing streaming tests due to MAPREDUCE-4994.
|
||||
(Sandy Ryza via tomwhite)
|
||||
|
||||
Release 2.0.4-alpha - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -37,9 +37,7 @@ public class LocalClientProtocolProvider extends ClientProtocolProvider {
|
|||
if (!MRConfig.LOCAL_FRAMEWORK_NAME.equals(framework)) {
|
||||
return null;
|
||||
}
|
||||
if (conf.get("mapreduce.job.maps") == null) {
|
||||
conf.setInt("mapreduce.job.maps", 1);
|
||||
}
|
||||
conf.setInt(JobContext.NUM_MAPS, 1);
|
||||
|
||||
return new LocalJobRunner(conf);
|
||||
}
|
||||
|
|
|
@ -68,6 +68,7 @@ public class TestStreamReduceNone
|
|||
"-reducer", "org.apache.hadoop.mapred.lib.IdentityReducer",
|
||||
"-numReduceTasks", "0",
|
||||
"-jobconf", "mapreduce.task.files.preserve.failedtasks=true",
|
||||
"-jobconf", "mapreduce.job.maps=1",
|
||||
"-jobconf", "stream.tmpdir="+System.getProperty("test.build.data","/tmp")
|
||||
};
|
||||
}
|
||||
|
|
|
@ -54,6 +54,8 @@ public class TestStreamXmlRecordReader extends TestStreaming {
|
|||
protected String[] genArgs() {
|
||||
args.add("-inputreader");
|
||||
args.add("StreamXmlRecordReader,begin=<xmltag>,end=</xmltag>");
|
||||
args.add("-jobconf");
|
||||
args.add("mapreduce.job.maps=1");
|
||||
return super.genArgs();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue