String hadoopSecurityAuthorization =
ServiceAuthorizationManager.SERVICE_AUTHORIZATION_CONFIG;
if (conf.getBoolean(
hadoopSecurityAuthorization,
false)) {
ServiceAuthorizationManager.refresh(conf, new BspPolicyProvider());
}
JobTokenSecretManager jobTokenSecretManager =
new JobTokenSecretManager();
if (jt != null) { //could be null in the case of some unit tests
jobTokenSecretManager.addTokenForJob(jobId, jt);