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:38:25 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15215686#comment-15215686 ] 

J.Andreina commented on MAPREDUCE-6664:
---------------------------------------

No new checkstyle issue is been introduced and since its javadoc updation and correction at default value no need of testcase.
Please review the patch

> 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)