YARN-8601. Print ExecutionType in Container report CLI. Contributed by Bilwa S T.

This commit is contained in:
bibinchundatt 2018-08-08 22:42:52 +05:30
parent 36c0d742d4
commit ff06bd1be8
2 changed files with 3 additions and 0 deletions

View File

@ -881,6 +881,8 @@ private int printContainerReport(String containerId) throws YarnException,
containerReportStr.println(containerReport.getFinishTime());
containerReportStr.print("\tState : ");
containerReportStr.println(containerReport.getContainerState());
containerReportStr.print("\tExecution-Type : ");
containerReportStr.println(containerReport.getExecutionType());
containerReportStr.print("\tLOG-URL : ");
containerReportStr.println(containerReport.getLogUrl());
containerReportStr.print("\tHost : ");

View File

@ -292,6 +292,7 @@ public void testGetContainerReport() throws Exception {
pw.println("\tStart-Time : 1234");
pw.println("\tFinish-Time : 5678");
pw.println("\tState : COMPLETE");
pw.println("\tExecution-Type : GUARANTEED");
pw.println("\tLOG-URL : logURL");
pw.println("\tHost : host:1234");
pw.println("\tNodeHttpAddress : http://host:2345");