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

Allow a load difference in fairshare scheduler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.1, 0.21.0, 0.22.0
    • 0.21.0
    • contrib/fair-share
    • None
    • Reviewed
    • fb

    Description

      The problem we are facing: It takes a long time for all tasks of a job to get scheduled on the cluster, even if the cluster is almost empty.

      There are two reasons that together lead to this situation:
      1. The load factor makes sure each TT runs the same number of tasks. (This is the part that this patch tries to change).

      2. The scheduler tries to schedule map tasks locally (first node-local, then rack-local). There is a wait time (mapred.fairscheduler.localitywait.node and mapred.fairscheduler.localitywait.rack, both are around 10 sec in our conf), and accumulated wait time (JobInfo.localityWait). The accumulated wait time is reset to 0 whenever a non-local map task is scheduled. That means it takes N * wait_time to schedule N non-local map tasks.

      Because of 1, a lot of TT will not be able to take more tasks, even if they have free slots. As a result, a lot of the map tasks cannot be scheduled locally.

      Because of 2, it's really hard to schedule a non-local task.

      As a result, sometimes we are seeing that it takes more than 2 minutes to schedule all the mappers of a job.

      Attachments

        1. MAPREDUCE-936.2.patch
          7 kB
          Zheng Shao
        2. MAPREDUCE-936.1.patch
          1 kB
          Zheng Shao

        Activity

          People

            zshao Zheng Shao
            zshao Zheng Shao
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: