Browse Source

MAPREDUCE-6866. Fix getNumMapTasks() documentation in JobConf.

This closes #205

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit e0a2eb71e3eb3efa865068089b649624132d33a1)
Joe Mészáros 8 years ago
parent
commit
34a11b9108

+ 4 - 4
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobConf.java

@@ -1287,10 +1287,10 @@ public class JobConf extends Configuration {
   }
   }
 
 
   /**
   /**
-   * 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>.
    * 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); }
   public int getNumMapTasks() { return getInt(JobContext.NUM_MAPS, 1); }
   
   
@@ -1335,9 +1335,9 @@ public class JobConf extends Configuration {
   public void setNumMapTasks(int n) { setInt(JobContext.NUM_MAPS, n); }
   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>.
    * <code>1</code>.
-   * 
+   *
    * @return the number of reduce tasks for this job.
    * @return the number of reduce tasks for this job.
    */
    */
   public int getNumReduceTasks() { return getInt(JobContext.NUM_REDUCES, 1); }
   public int getNumReduceTasks() { return getInt(JobContext.NUM_REDUCES, 1); }