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

(cherry picked from commit f390edaec4)

Conflicts:
	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

(cherry picked from commit 88a8752fa2)
This commit is contained in:
Owen O'Malley 2022-05-23 22:07:19 -07:00 committed by Masatake Iwasaki
parent ba041fe6d3
commit 227d64ab59
1 changed files with 2 additions and 2 deletions

View File

@ -97,13 +97,13 @@ public class ZKConfigurationStore extends YarnConfigurationStore {
zkManager.delete(fencingNodePath);
if (!zkManager.exists(logsPath)) {
zkManager.create(logsPath);
zkManager.create(logsPath, zkAcl);
zkManager.setData(logsPath,
serializeObject(new LinkedList<LogMutation>()), -1);
}
if (!zkManager.exists(confStorePath)) {
zkManager.create(confStorePath);
zkManager.create(confStorePath, zkAcl);
HashMap<String, String> mapSchedConf = new HashMap<>();
for (Map.Entry<String, String> entry : schedConf) {
mapSchedConf.put(entry.getKey(), entry.getValue());