YARN-7245. Max AM Resource column in Active Users Info section of Capacity Scheduler UI page should be updated per-user. Contributed by Eric Payne.

(cherry picked from commit 8137254a1f)
This commit is contained in:
Sunil G 2017-10-09 14:39:41 +05:30
parent 7dfe97d84f
commit 84e2e2a6f6
1 changed files with 1 additions and 2 deletions

View File

@ -221,8 +221,7 @@ class CapacitySchedulerPage extends RmView {
ArrayList<UserInfo> users = lqinfo.getUsers().getUsersList();
for (UserInfo userInfo : users) {
ResourceInfo resourcesUsed = userInfo.getResourcesUsed();
PartitionResourcesInfo resourceUsages = lqinfo
.getResources()
PartitionResourcesInfo resourceUsages = userInfo.getResourceUsageInfo()
.getPartitionResourceUsageInfo((nodeLabel == null) ? "" : nodeLabel);
if (nodeLabel != null) {
resourcesUsed = userInfo.getResourceUsageInfo()