YARN-11162. Set the zk acl for nodes created by ZKConfigurationStore. (#4350)
(cherry picked from commit f390edaec4
)
This commit is contained in:
parent
ab3a9cedc9
commit
1f111d6a41
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue