YARN-7611. Node manager web UI should display container type in containers page. Contributed by Weiwei Yang.

This commit is contained in:
Weiwei Yang 2017-12-06 12:21:52 +08:00
parent 73b86979d6
commit 05c347fe51
1 changed files with 4 additions and 2 deletions

View File

@ -51,9 +51,9 @@ public class AllContainersPage extends NMView {
private String containersTableInit() { private String containersTableInit() {
return tableInit(). return tableInit().
// containerid, containerid, log-url // containerid, executiontype, containerid, log-url
append(", aoColumns:[").append(getContainersIdColumnDefs()) append(", aoColumns:[").append(getContainersIdColumnDefs())
.append(", null, {bSearchable:false}]} ").toString(); .append(", null, null, {bSearchable:false}]} ").toString();
} }
private String getContainersIdColumnDefs() { private String getContainersIdColumnDefs() {
@ -83,6 +83,7 @@ public class AllContainersPage extends NMView {
.thead() .thead()
.tr() .tr()
.td().__("ContainerId").__() .td().__("ContainerId").__()
.td().__("ExecutionType").__()
.td().__("ContainerState").__() .td().__("ContainerState").__()
.td().__("logs").__() .td().__("logs").__()
.__() .__()
@ -94,6 +95,7 @@ public class AllContainersPage extends NMView {
.tr() .tr()
.td().a(url("container", info.getId()), info.getId()) .td().a(url("container", info.getId()), info.getId())
.__() .__()
.td().__(info.getExecutionType()).__()
.td().__(info.getState()).__() .td().__(info.getState()).__()
.td() .td()
.a(url(info.getShortLogLink()), "logs").__() .a(url(info.getShortLogLink()), "logs").__()