|| System.currentTimeMillis() >= reportTime + maxReportInterval) {
// write out serialized plan with counters to log file
// LOG.info(queryPlan);
String output = dateFormat.format(Calendar.getInstance().getTime()) + report;
SessionState ss = SessionState.get();
if (ss != null) {
ss.getHiveHistory().setTaskCounters(
SessionState.get().getQueryId(), getId(), rj);
ss.getHiveHistory().setTaskProperty(
SessionState.get().getQueryId(), getId(),
Keys.TASK_HADOOP_PROGRESS, output);
ss.getHiveHistory().progressTask(
SessionState.get().getQueryId(), this);
ss.getHiveHistory().logPlanProgress(queryPlan);
}
console.printInfo(output);
lastReport = report;
reportTime = System.currentTimeMillis();
}
}
// check for fatal error again in case it occurred after the last check before the job is completed
if ( !fatal && (fatal = checkFatalErrors(th, errMsg))) {
console.printError("[Fatal Error] " + errMsg.toString());
success = false;
} else
success = rj.isSuccessful();
setDone();
th.setRunningJob(jc.getJob(rj.getJobID()));
updateCounters(th);
SessionState ss = SessionState.get();
if (ss != null) {
ss.getHiveHistory().logPlanProgress(queryPlan);
}
//LOG.info(queryPlan);
}