You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "J.Andreina (JIRA)" <ji...@apache.org> on 2016/03/29 06:19:25 UTC

[jira] [Created] (MAPREDUCE-6664) Wrong default value is returned and the javadoc explanation is misleading for JobConf#getNumMapTasks

J.Andreina created MAPREDUCE-6664:
-------------------------------------

             Summary: Wrong default value is returned and the javadoc explanation is misleading for JobConf#getNumMapTasks
                 Key: MAPREDUCE-6664
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6664
             Project: Hadoop Map/Reduce
          Issue Type: Bug
            Reporter: J.Andreina
            Assignee: J.Andreina


1.

As per mapred-default.xml , default value for number of map task per job is 2, but in JobConf#getNumMapTasks() it is 1
{noformat}
  <name>mapreduce.job.maps</name>
  <value>2</value>
{noformat}

2. Javadoc for getNumMapTasks() is misleading, as it explains about number of reduce task
{code}
  /**
   * Get configured the number of reduce tasks for this job.
   * Defaults to <code>1</code>.
   * 
   * @return the number of reduce tasks for this job.
   */
  public int getNumMapTasks() { return getInt(JobContext.NUM_MAPS, 1); }
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)