dagAppMaster =
new DAGAppMaster(applicationAttemptId, cId, currentHost, nmPort, nmHttpPort,
new SystemClock(),
appSubmitTime, isSession, userDir.toUri().getPath());
clientHandler = new DAGClientHandler(dagAppMaster);
DAGAppMaster.initAndStartAppMaster(dagAppMaster, currentUser.getShortUserName());
} catch (Throwable t) {
LOG.fatal("Error starting DAGAppMaster", t);
System.exit(1);