YARN-11162. Set the zk acl for nodes created by ZKConfigurationStore. (#4350)

(cherry picked from commit f390edaec4)

Change-Id: If2dccabb4ef01d27da02e86a4317e666dcd34073
This commit is contained in:
Owen O'Malley 2022-05-23 22:07:19 -07:00 committed by Steve Loughran
parent 5e47894d80
commit 953255a3fa
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ public class ZKConfigurationStore extends YarnConfigurationStore {
private boolean createNewZkPath(String path) throws Exception {
if (!zkManager.exists(path)) {
try {
zkManager.create(path);
zkManager.create(path, zkAcl);
} catch(NodeExistsException e) {
LOG.warn(NODEEXISTS_MSG, e);
return false;