[ https://issues.apache.org/jira/browse/YARN-7116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16145128#comment-16145128 ]
Sunil G commented on YARN-7116: ------------------------------- [~bibinchundatt], I didnt understand your point clearly. As per below code, we consider all resource usages per label and updating same. Below code is from trunk. Post this patch, we handle {{amUsed}} more cleanly. Please update me if I understood your comment wrongly. {code} PartitionResourcesInfo resourceUsages = lqinfo .getResources() .getPartitionResourceUsageInfo((nodeLabel == null) ? "" : nodeLabel); if (nodeLabel != null) { resourcesUsed = userInfo.getResourceUsageInfo() .getPartitionResourceUsageInfo(nodeLabel).getUsed(); } ResourceInfo amUsed = (resourceUsages.getAmUsed() == null) ? new ResourceInfo(Resources.none()) : resourceUsages.getAmUsed(); {code} > CapacityScheduler Web UI: Queue's AM usage is always show on per-user's AM > usage. > --------------------------------------------------------------------------------- > > Key: YARN-7116 > URL: https://issues.apache.org/jira/browse/YARN-7116 > Project: Hadoop YARN > Issue Type: Bug > Components: capacity scheduler, webapp > Affects Versions: 2.9.0, 2.8.1, 3.0.0-alpha4 > Reporter: Wangda Tan > Assignee: Wangda Tan > Attachments: YARN-7116.001.patch > > > On CapacityScheduler's web UI, AM usage of different users belong to the same > queue always shows queue's AM usage. > The root cause is: under CapacitySchedulerPage. > {code} > tbody.tr().td(userInfo.getUsername()) > .td(userInfo.getUserResourceLimit().toString()) > .td(resourcesUsed.toString()) > .td(resourceUsages.getAMLimit().toString()) > .td(amUsed.toString()) > .td(Integer.toString(userInfo.getNumActiveApplications())) > .td(Integer.toString(userInfo.getNumPendingApplications()))._(); > {code} > Instead of amUsed.toString(), it should use userInfo.getAmUsed(). -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org