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 10:37:25 UTC
[jira] [Updated] (MAPREDUCE-6664) Default value and the
explanation in javadoc is misleading for JobConf#getNumMapTasks
[ https://issues.apache.org/jira/browse/MAPREDUCE-6664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
J.Andreina updated MAPREDUCE-6664:
----------------------------------
Summary: Default value and the explanation in javadoc is misleading for JobConf#getNumMapTasks (was: Wrong default value is returned and the javadoc explanation is misleading for JobConf#getNumMapTasks)
> Default value and the explanation in javadoc 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
> Attachments: MAPREDUCE-6664-trunk-01.patch
>
>
> 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)