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
        15 kB
        Thomas Graves
      2. MAPREDUCE-3681.patch
        15 kB
        Arun C Murthy
      3. MAPREDUCE-3681.patch
        13 kB
        Arun C Murthy

        Activity

        Thomas Graves created issue -
        Arun C Murthy made changes -
        Field Original Value New Value
        Assignee Arun C Murthy [ acmurthy ]
        Arun C Murthy made changes -
        Priority Blocker [ 1 ] Critical [ 2 ]
        Arun C Murthy made changes -
        Attachment MAPREDUCE-3681.patch [ 12511101 ]
        Arun C Murthy made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Arun C Murthy made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Arun C Murthy made changes -
        Attachment MAPREDUCE-3681.patch [ 12511198 ]
        Arun C Murthy made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Thomas Graves made changes -
        Attachment MAPREDUCE-3681.patch [ 12511466 ]
        Arun C Murthy made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Vinod Kumar Vavilapalli made changes -
        Fix Version/s 0.23.1 [ 12318883 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          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