Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6664

Default value and the explanation in javadoc is misleading for JobConf#getNumMapTasks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      1.

      As per mapred-default.xml , default value for number of map task per job is 2, but in JobConf#getNumMapTasks() it is 1

        <name>mapreduce.job.maps</name>
        <value>2</value>
      

      2. Javadoc for getNumMapTasks() is misleading, as it explains about number of reduce task

        /**
         * 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); }
      

      Attachments

        Activity

          People

            andreina J.Andreina
            andreina J.Andreina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: