YARN-7120. CapacitySchedulerPage NPE in "Aggregate scheduler counts" section. Contributed by Eric Payne

This commit is contained in:
Jason Lowe 2017-09-01 11:09:14 -05:00
parent a3fee475f7
commit 99a7f5d451

View File

@ -556,8 +556,12 @@ public void render(HtmlBlock.Block html) {
.$class("ui-state-default").__("Queue").__().__().__().tbody();
SchedulerHealth.DetailedInformation di = entry.getValue();
if (di.getTimestamp() != 0) {
containerId = di.getContainerId().toString();
nodeId = di.getNodeId().toString();
if (di.getContainerId() != null) {
containerId = di.getContainerId().toString();
}
if (di.getNodeId() != null) {
nodeId = di.getNodeId().toString();
}
queue = di.getQueue();
}
tbody.$class("ui-widget-content").tr()