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

(cherry picked from commit ff06bd1be8)
This commit is contained in:
bibinchundatt 2018-08-08 22:42:52 +05:30
parent bf03b25f4b
commit b4f957e655
2 changed files with 3 additions and 0 deletions

View File

@ -821,6 +821,8 @@ public class ApplicationCLI extends YarnCLI {
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 class TestYarnCLI {
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");