MAPREDUCE-6866. Fix getNumMapTasks() documentation in JobConf.
This closes #205 Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
parent
b63ae854f9
commit
e0a2eb71e3
@ -1286,10 +1286,10 @@ public void setReduceSpeculativeExecution(boolean speculativeExecution) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get configured the number of reduce tasks for this job.
|
||||
* Get the configured number of map tasks for this job.
|
||||
* Defaults to <code>1</code>.
|
||||
*
|
||||
* @return the number of reduce tasks for this job.
|
||||
* @return the number of map tasks for this job.
|
||||
*/
|
||||
public int getNumMapTasks() { return getInt(JobContext.NUM_MAPS, 1); }
|
||||
|
||||
@ -1334,9 +1334,9 @@ public void setReduceSpeculativeExecution(boolean speculativeExecution) {
|
||||
public void setNumMapTasks(int n) { setInt(JobContext.NUM_MAPS, n); }
|
||||
|
||||
/**
|
||||
* Get configured the number of reduce tasks for this job. Defaults to
|
||||
* Get the configured number of reduce tasks for this job. Defaults to
|
||||
* <code>1</code>.
|
||||
*
|
||||
*
|
||||
* @return the number of reduce tasks for this job.
|
||||
*/
|
||||
public int getNumReduceTasks() { return getInt(JobContext.NUM_REDUCES, 1); }
|
||||
|
Loading…
Reference in New Issue
Block a user