NetUtils.createSocketAddr(report.getHost(), report.getRpcPort()), conf);
GetApplicationReportRequest reportRequest = Records
.newRecord(GetApplicationReportRequest.class);
reportRequest.setApplicationId(submitClient.getId());
GetApplicationReportResponse reportResponse = applicationsManager
.getApplicationReport(reportRequest);
ApplicationReport localReport = reportResponse.getApplicationReport();
long clientSuperStep = -1L;
while (localReport.getFinalApplicationStatus() != null
&& localReport.getFinalApplicationStatus().ordinal() == 0) {
LOG.debug("currently in state: "
+ localReport.getFinalApplicationStatus());
if (verbose) {
long remoteSuperStep = client.getCurrentSuperStep().get();
if (clientSuperStep < remoteSuperStep) {
clientSuperStep = remoteSuperStep;
LOG.info("Current supersteps number: " + clientSuperStep);
}
}
reportResponse = applicationsManager.getApplicationReport(reportRequest);
localReport = reportResponse.getApplicationReport();
Thread.sleep(3000L);
}
if (localReport.getFinalApplicationStatus() == FinalApplicationStatus.SUCCEEDED) {