Zookeeper
| Parameter | Description | Default value |
|---|---|---|
connect |
ZooKeeper connection string used by other services or clusters. It is generated automatically |
— |
dataDir |
Location where ZooKeeper stores the in-memory database snapshots and, unless specified otherwise, the transaction log of updates to the database. It is specified as the |
/var/lib/zookeeper |
| Parameter | Description | Default value |
|---|---|---|
clientPort |
Port to listen for client connections, that is the port that clients attempt to connect to |
2181 |
admin.serverPort |
Port that the embedded Jetty server listens on |
5181 |
admin.enableServer |
Enables Admin server — an embedded Jetty server that provides an HTTP interface to the four-letter-word commands |
Disabled |
tickTime |
Length of a single tick (in milliseconds) which is the basic time unit used by ZooKeeper to regulate heartbeats and timeouts |
2000 |
initLimit |
Amount of time (in ticks) to allow followers to connect and sync with a leader. Increase this value as needed if the amount of data managed by ZooKeeper is large |
5 |
syncLimit |
Amount of time (in ticks) to allow followers to sync with ZooKeeper. If followers fall too far behind a leader, they will be dropped |
2 |
maxClientCnxns |
Limits the number of active connections from a single client, identified by IP address, to a single member of the ZooKeeper ensemble |
0 |
autopurge.snapRetainCount |
When enabled, ZooKeeper auto-purge feature retains the specified number of the most recent snapshots and the corresponding transaction logs in dataDir and dataLogDir respectively, and deletes the rest. The minimum value is |
3 |
autopurge.purgeInterval |
Time interval (in hours), for which the purge task has to be triggered. Set a positive integer to enable the auto purging |
24 |
Add key,value |
In this section, you can define values for custom parameters that are not displayed in ADCM UI, but are allowed in the zoo.cfg configuration file |
— |
| Parameter | Description | Default value |
|---|---|---|
Enable SSL |
Enables secure incoming connections in ZooKeeper |
Disabled |
sslQuorum |
Enables encrypted quorum communication |
Disabled |
serverCnxnFactory |
Specifies |
org.apache.zookeeper.server.NettyServerCnxnFactory |
ssl.quorum.keyStore.location |
Fully-qualified path to the server keystore file |
/etc/zookeeper/server.jks |
ssl.quorum.keyStore.password |
Password for the keystore specified in |
— |
ssl.quorum.trustStore.location |
Fully-qualified path to the server truststore file |
/etc/zookeeper/ca.jks |
ssl.quorum.trustStore.password |
Password for the truststore specified in |
— |
ssl.keyStore.location |
Fully-qualified path to the server keystore file to be used for client TLS connections |
/etc/zookeeper/server.jks |
ssl.keyStore.password |
Password for the keystore specified in |
— |
ssl.trustStore.location |
Fully-qualified path to the server truststore file to be used for client TLS connections |
/etc/zookeeper/ca.jks |
ssl.trustStore.password |
Password for the truststore specified in |
— |
ssl.protocol |
Protocol to be used in client TLS negotiation |
TLSv1.2 |
ssl.quorum.protocol |
Protocol to be used in quorum TLS negotiation |
TLSv1.2 |
secureClientPort |
Port to be used for secure client connections |
2281 |
| Parameter | Description | Default value |
|---|---|---|
Listen port |
Port to listen for Zookeeper service metrics |
9020 |
| Parameter | Description | Default value |
|---|---|---|
JAVA |
Path to Java |
$JAVA_HOME/bin/java |
ZOOPIDFILE |
Directory to store the ZooKeeper process ID |
/var/run/zookeeper/zookeeper_server.pid |
ZOO_LOG_DIR |
Directory to store logs |
/var/log/zookeeper |
SERVER_JVMFLAGS |
Used to set different JVM parameters (for example, parameters related to garbage collection) |
-Xmx1024m |