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 @@ private CuratorFramework createCurator() throws IOException {
|
||||
registrySecurity.applySecurityEnvironment(builder);
|
||||
//log them
|
||||
securityConnectionDiagnostics = buildSecurityDiagnostics();
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(securityConnectionDiagnostics);
|
||||
}
|
||||
framework = builder.build();
|
||||
framework.start();
|
||||
}
|
||||
|
@ -762,6 +762,8 @@ public void applySecurityEnvironment(CuratorFrameworkFactory.Builder builder) {
|
||||
LOG.info(
|
||||
"Enabling ZK sasl client: jaasClientEntry = " + jaasClientEntry
|
||||
+ ", principal = " + principal + ", keytab = " + keytab);
|
||||
break;
|
||||
|
||||
default:
|
||||
clearZKSaslClientProperties();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user