MAPREDUCE-6601. Fix typo in Job#setUseNewAPI. Contributed by Kai Sasaki.
(cherry picked from commit5cc44d18aa
) (cherry picked from commit7c4be15991
)
This commit is contained in:
parent
b3fa190297
commit
6816481c72
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue