YARN-9210. RM nodes web page can not display node info. Contributed by Jiandan Yang.
(cherry picked from commit d43df31751
)
This commit is contained in:
parent
4edd883d48
commit
b61754b1bd
|
@ -168,7 +168,7 @@ class NodesPage extends RmView {
|
||||||
nodeTableData.append("<br title='")
|
nodeTableData.append("<br title='")
|
||||||
.append(String.valueOf(info.getLastHealthUpdate())).append("'>")
|
.append(String.valueOf(info.getLastHealthUpdate())).append("'>")
|
||||||
.append(Times.format(info.getLastHealthUpdate())).append("\",\"")
|
.append(Times.format(info.getLastHealthUpdate())).append("\",\"")
|
||||||
.append(info.getHealthReport()).append("\",\"")
|
.append(StringEscapeUtils.escapeJava(info.getHealthReport())).append("\",\"")
|
||||||
.append(String.valueOf(info.getNumContainers())).append("\",\"")
|
.append(String.valueOf(info.getNumContainers())).append("\",\"")
|
||||||
.append(info.getAllocationTagsSummary()).append("\",\"")
|
.append(info.getAllocationTagsSummary()).append("\",\"")
|
||||||
.append("<br title='").append(String.valueOf(usedMemory))
|
.append("<br title='").append(String.valueOf(usedMemory))
|
||||||
|
@ -204,9 +204,8 @@ class NodesPage extends RmView {
|
||||||
nodeTableData.length() - 1);
|
nodeTableData.length() - 1);
|
||||||
}
|
}
|
||||||
nodeTableData.append("]");
|
nodeTableData.append("]");
|
||||||
String nodeTableDataEscaped = StringEscapeUtils.escapeJava(nodeTableData.toString());
|
|
||||||
html.script().$type("text/javascript")
|
html.script().$type("text/javascript")
|
||||||
.__("var nodeTableData=" + nodeTableDataEscaped).__();
|
.__("var nodeTableData=" + nodeTableData).__();
|
||||||
tbody.__().__();
|
tbody.__().__();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue