From e0a2eb71e3eb3efa865068089b649624132d33a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=20M=C3=A9sz=C3=A1ros?= Date: Fri, 24 Mar 2017 10:46:31 +0100 Subject: [PATCH] MAPREDUCE-6866. Fix getNumMapTasks() documentation in JobConf. This closes #205 Signed-off-by: Akira Ajisaka --- .../src/main/java/org/apache/hadoop/mapred/JobConf.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobConf.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobConf.java index ef9ec6168d..f286a96a44 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobConf.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobConf.java @@ -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 1. * - * @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 * 1. - * + * * @return the number of reduce tasks for this job. */ public int getNumReduceTasks() { return getInt(JobContext.NUM_REDUCES, 1); }