ApplicationSubmissionContext appContext =
TezClientUtils.createApplicationSubmissionContext(
sessionAppId,
null, clientName, amConfig,
tezJarResources, sessionCredentials, usingTezArchiveDeploy, apiVersionInfo,
<BUG>historyACLPolicyManager, servicePluginsDescriptor, javaOptsChecker);
if (!amConfig.getTezConfiguration().getBoolean(</BUG>
TezConfiguration.DAG_RECOVERY_ENABLED,
TezConfiguration.DAG_RECOVERY_ENABLED_DEFAULT)) {
appContext.setMaxAppAttempts(1);

ApplicationSubmissionContext appContext =
TezClientUtils.createApplicationSubmissionContext(
sessionAppId,
null, clientName, amConfig,
tezJarResources, sessionCredentials, usingTezArchiveDeploy, apiVersionInfo,
servicePluginsDescriptor, javaOptsChecker);
if (!amConfig.getTezConfiguration().getBoolean(
TezConfiguration.DAG_RECOVERY_ENABLED,
TezConfiguration.DAG_RECOVERY_ENABLED_DEFAULT)) {
appContext.setMaxAppAttempts(1);
