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