From b9b927af1d95d51bdc6775d2c0ac7d2855139670 Mon Sep 17 00:00:00 2001 From: Owen O'Malley Date: Mon, 23 May 2022 17:27:58 -0700 Subject: [PATCH] YARN-11162 Set the zk acl for nodes created by ZKConfigurationStore. --- .../scheduler/capacity/conf/ZKConfigurationStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/ZKConfigurationStore.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/ZKConfigurationStore.java index ad8fb97a7a65b..492ff43dce72b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/ZKConfigurationStore.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/ZKConfigurationStore.java @@ -251,7 +251,7 @@ public List getConfirmedConfHistory(long fromId) { 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;