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:
parent
7dfe97d84f
commit
84e2e2a6f6
|
@ -221,8 +221,7 @@ class CapacitySchedulerPage extends RmView {
|
||||||
ArrayList<UserInfo> users = lqinfo.getUsers().getUsersList();
|
ArrayList<UserInfo> users = lqinfo.getUsers().getUsersList();
|
||||||
for (UserInfo userInfo : users) {
|
for (UserInfo userInfo : users) {
|
||||||
ResourceInfo resourcesUsed = userInfo.getResourcesUsed();
|
ResourceInfo resourcesUsed = userInfo.getResourcesUsed();
|
||||||
PartitionResourcesInfo resourceUsages = lqinfo
|
PartitionResourcesInfo resourceUsages = userInfo.getResourceUsageInfo()
|
||||||
.getResources()
|
|
||||||
.getPartitionResourceUsageInfo((nodeLabel == null) ? "" : nodeLabel);
|
.getPartitionResourceUsageInfo((nodeLabel == null) ? "" : nodeLabel);
|
||||||
if (nodeLabel != null) {
|
if (nodeLabel != null) {
|
||||||
resourcesUsed = userInfo.getResourceUsageInfo()
|
resourcesUsed = userInfo.getResourceUsageInfo()
|
||||||
|
|
Loading…
Reference in New Issue