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