Skip to content

Commit

Permalink
YARN-11162. Set the zk acl for nodes created by ZKConfigurationStore. (
Browse files Browse the repository at this point in the history
…#4350)

(cherry picked from commit f390eda)

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
  • Loading branch information
omalley authored and iwasakims committed May 24, 2022
1 parent b2be007 commit 88a8752
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -97,13 +97,13 @@ public void initialize(Configuration config, Configuration schedConf,
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());
Expand Down

0 comments on commit 88a8752

Please sign in to comment.