this.yarnATSEnabled = context.getAMConf().getBoolean(TezConfiguration.YARN_ATS_ENABLED,
TezConfiguration.YARN_ATS_ENABLED_DEFAULT);
this.recoveryEnabled = context.getAMConf().getBoolean(TezConfiguration.DAG_RECOVERY_ENABLED,
TezConfiguration.DAG_RECOVERY_ENABLED_DEFAULT);
if (yarnATSEnabled) {
atsService = new ATSService();
addService(atsService);
}
if (recoveryEnabled) {
recoveryService = new RecoveryService(context);
addService(recoveryService);