YARN-7940. Fixed a bug in ServiceAM ZooKeeper initialization.
(Contributed by Billie Rinaldi)
This commit is contained in:
parent
8896d20b91
commit
7280c5af82
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue