Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3932

SchedulerApplicationAttempt#getResourceUsageReport and UserInfo should based on total-used-resources

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • resourcemanager
    • None
    • Reviewed

    Description

      Application Resource Report shown wrong when node Label is used.

      1.Submit application with NodeLabel
      2.Check RM UI for resources used
      Allocated CPU VCores and Allocated Memory MB is always zero

       public synchronized ApplicationResourceUsageReport getResourceUsageReport() {
          AggregateAppResourceUsage runningResourceUsage =
              getRunningAggregateAppResourceUsage();
          Resource usedResourceClone =
              Resources.clone(attemptResourceUsage.getUsed());
          Resource reservedResourceClone =
              Resources.clone(attemptResourceUsage.getReserved());
          return ApplicationResourceUsageReport.newInstance(liveContainers.size(),
              reservedContainers.size(), usedResourceClone, reservedResourceClone,
              Resources.add(usedResourceClone, reservedResourceClone),
              runningResourceUsage.getMemorySeconds(),
              runningResourceUsage.getVcoreSeconds());
        }
      

      should be attemptResourceUsage.getUsed(label)

      Attachments

        1. 0001-YARN-3932.patch
          1 kB
          Bibin Chundatt
        2. 0002-YARN-3932.patch
          5 kB
          Bibin Chundatt
        3. 0003-YARN-3932.patch
          6 kB
          Bibin Chundatt
        4. 0004-YARN-3932.patch
          7 kB
          Bibin Chundatt
        5. 0005-YARN-3932.patch
          7 kB
          Bibin Chundatt
        6. 0006-YARN-3932.patch
          7 kB
          Bibin Chundatt
        7. ApplicationReport.jpg
          12 kB
          Bibin Chundatt
        8. TestResult.jpg
          9 kB
          Bibin Chundatt

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bibinchundatt Bibin Chundatt
            bibinchundatt Bibin Chundatt
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment