ZooKeeper configuration parameters
To configure the service, use the following configuration parameters in ADCM.
|
NOTE
|
| 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 |
/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 |
Embedded Jetty server port |
5181 |
admin.enableServer |
Enables the AdminServer, which is an embedded Jetty server that provides an HTTP interface to the four-letter-word commands. Set to |
false |
tickTime |
Basic time unit used by ZooKeeper (in milliseconds).
It is used for heartbeats.
The minimum session timeout will be twice the |
2000 |
initLimit |
Timeouts that ZooKeeper uses to limit the length of the time for ZooKeeper servers in quorum to connect to the leader |
5 |
syncLimit |
Defines the maximum date skew between server and the leader |
2 |
maxClientCnxns |
This property limits the number of active connections from the host, specified by IP address, to a single ZooKeeper Server |
0 |
autopurge.snapRetainCount |
When enabled, ZooKeeper auto-purge feature retains the |
3 |
autopurge.purgeInterval |
Time interval, for which the purge task has to be triggered (in hours).
Set to a positive integer ( |
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 configuration file zoo.cfg |
— |
| Parameter | Description | Default value |
|---|---|---|
sslQuorum |
Enables encrypted quorum communication |
false |
serverCnxnFactory |
Specifies |
org.apache.zookeeper.server.NettyServerCnxnFactory |
ssl.quorum.keyStore.location |
Specifies the absolute path to the server keystore file (for example: /etc/zookeeper/ssl/keystore.jks) |
— |
ssl.quorum.keyStore.password |
Specifies the password used when the keystore was created |
— |
ssl.quorum.trustStore.location |
Specifies the absolute path to the server truststore file (for example: /etc/zookeeper/ssl/truststore.jks) |
— |
ssl.quorum.trustStore.password |
Specifies the password used when the truststore is created |
— |
ssl.protocol |
Specifies the protocol to be used in client TLS negotiation |
TLSv1.2 |
ssl.quorum.protocol |
Specifies the protocol to be used in quorum TLS negotiation |
TLSv1.2 |
| Parameter | Description | Default value |
|---|---|---|
Myid matching |
A mapping of the quorum hosts to internal ZooKeeper IDs |
— |
| Parameter | Description | Default value |
|---|---|---|
ZOO_LOG_DIR |
The directory to store logs |
/var/log/zookeeper |
ZOOPIDFILE |
The directory to store the ZooKeeper process ID |
/var/run/zookeeper/zookeeper_server.pid |
SERVER_JVMFLAGS |
Used for setting different JVM parameters connected, for example, with garbage collecting |
-Xmx1024m |
JAVA |
A path to Java |
$JAVA_HOME/bin/java |
logback.xml template |
Used for setting the logging level and defines which log appenders to turn on.
Enabling the log appender |
— |