hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Andreina (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-6664) Wrong default value is returned and the javadoc explanation is misleading for JobConf#getNumMapTasks
Date Tue, 29 Mar 2016 04:19:25 GMT
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)

Mime
View raw message