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

capacity scheduler LeafQueues calculate used capacity wrong

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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().

        Attachments

        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:
              acmurthy Arun C Murthy
              Reporter:
              tgraves Thomas Graves
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: