MAPREDUCE-6601. Fix typo in Job#setUseNewAPI. Contributed by Kai Sasaki.

(cherry picked from commit 5cc44d18aa)
(cherry picked from commit 7c4be15991)
This commit is contained in:
Akira Ajisaka 2016-01-15 00:44:24 +09:00
parent b3fa190297
commit 6816481c72
2 changed files with 5 additions and 3 deletions

View File

@ -385,6 +385,8 @@ Release 2.8.0 - UNRELEASED
MAPREDUCE-6068. Illegal progress value warnings in map tasks. (Binglin Chang
via junping_du)
MAPREDUCE-6601. Fix typo in Job#setUseNewAPI. (Kai Sasaki via aajisaka)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -1258,7 +1258,7 @@ public class Job extends JobContextImpl implements JobContext {
/**
* Default to the new APIs unless they are explicitly set or the old mapper or
* reduce attributes are used.
* @throws IOException if the configuration is inconsistant
* @throws IOException if the configuration is inconsistent
*/
private void setUseNewAPI() throws IOException {
int numReduces = conf.getNumReduceTasks();
@ -1276,7 +1276,7 @@ public class Job extends JobContextImpl implements JobContext {
ensureNotSet("mapred.output.format.class", mode);
}
} else {
String mode = "map compatability";
String mode = "map compatibility";
ensureNotSet(INPUT_FORMAT_CLASS_ATTR, mode);
ensureNotSet(MAP_CLASS_ATTR, mode);
if (numReduces != 0) {
@ -1293,7 +1293,7 @@ public class Job extends JobContextImpl implements JobContext {
ensureNotSet("mapred.output.format.class", mode);
ensureNotSet(oldReduceClass, mode);
} else {
String mode = "reduce compatability";
String mode = "reduce compatibility";
ensureNotSet(OUTPUT_FORMAT_CLASS_ATTR, mode);
ensureNotSet(REDUCE_CLASS_ATTR, mode);
}