Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-3681

capacity scheduler LeafQueues calculate used capacity wrong

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.1
    • Component/s: mrv2
    • Labels:
      None

      Description

      In the Capacity scheduler if you configure the queues to be hierarchical where you have root -> parent queue -> leaf queue, the leaf queue doesn't calculate the used capacity properly. It seems to be using the entire cluster memory rather then its parents memory capacity.

      In updateResource in LeafQueue:
      setUsedCapacity(
      usedResources.getMemory() / (clusterResource.getMemory() * capacity));

      I think the clusterResource.getMemory() should be something like getParentsMemory().

      1. MAPREDUCE-3681.patch
        13 kB
        Arun C Murthy
      2. MAPREDUCE-3681.patch
        15 kB
        Arun C Murthy
      3. MAPREDUCE-3681.patch
        15 kB
        Thomas Graves

        Activity

          People

          • Assignee:
            Arun C Murthy
            Reporter:
            Thomas Graves
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development