YARN-7940. Fixed a bug in ServiceAM ZooKeeper initialization.

(Contributed by Billie Rinaldi)

(cherry-picked from commit 7280c5af82)
This commit is contained in:
Eric Yang 2018-02-20 14:12:58 -05:00
parent 538c473f49
commit 7506e100fc
2 changed files with 5 additions and 0 deletions

View File

@ -288,6 +288,9 @@ public class CuratorService extends CompositeService
registrySecurity.applySecurityEnvironment(builder);
//log them
securityConnectionDiagnostics = buildSecurityDiagnostics();
if (LOG.isDebugEnabled()) {
LOG.debug(securityConnectionDiagnostics);
}
framework = builder.build();
framework.start();
}

View File

@ -762,6 +762,8 @@ public class RegistrySecurity extends AbstractService {
LOG.info(
"Enabling ZK sasl client: jaasClientEntry = " + jaasClientEntry
+ ", principal = " + principal + ", keytab = " + keytab);
break;
default:
clearZKSaslClientProperties();
break;