Skip to content

Commit

Permalink
YARN-11468. Zookeeper SSL/TLS support. Contributed by Ferenc Erdelyi
Browse files Browse the repository at this point in the history
  • Loading branch information
szilard-nemeth committed Sep 27, 2023
1 parent f232eec commit d9cb76a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,10 @@ public static boolean isAclEnabled(Configuration conf) {
/** Zookeeper interaction configs */
public static final String RM_ZK_PREFIX = RM_PREFIX + "zk-";

/** Enable Zookeeper SSL/TLS communication. */
public static final String RM_ZK_CLIENT_SSL_ENABLED = RM_ZK_PREFIX + "client-ssl.enabled";
public static final boolean DEFAULT_RM_ZK_CLIENT_SSL_ENABLED = false;

public static final String RM_ZK_ADDRESS = RM_ZK_PREFIX + "address";

public static final String RM_ZK_NUM_RETRIES = RM_ZK_PREFIX + "num-retries";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,12 @@
<value>1048576</value>
</property>

<property>
<description>Enable SSL/TLS encryption for the ZooKeeper communication.</description>
<name>yarn.resourcemanager.zk-client-ssl.enabled</name>
<value>false</value>
</property>

<property>
<description>Name of the cluster. In a HA setting,
this is used to ensure the RM participates in leader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ public ZKCuratorManager createAndStartZKManager(Configuration
authInfos.add(authInfo);
}

manager.start(authInfos);
manager.start(authInfos, config.getBoolean(YarnConfiguration.RM_ZK_CLIENT_SSL_ENABLED,
YarnConfiguration.DEFAULT_RM_ZK_CLIENT_SSL_ENABLED));
return manager;
}

Expand Down

0 comments on commit d9cb76a

Please sign in to comment.