Configuring ZooKeeper
note
Dremio recommends ZooKeeper 3.6 or later. ZooKeeper 3.4 has reached end-of-life and is no longer supported.
To configure ZooKeeper, the zookeeper property with the hostname and port must be added to the dremio.conf file on all nodes in the Dremio cluster. This is particularly important when ZooKeeper is on an external node. The default port is 2181.
| Deployment | ZooKeeper property |
|---|---|
| Single-Node cluster | The ZooKeeper property is not added to the dremio.conf file with a single node cluster. |
| Multi-node cluster | The ZooKeeper property must be added to the dremio.conf file on each coordinator and executor node in the Dremio cluster. |
note
There are no spaces between the comma-separated list of ZooKeeper nodes.
If there are extra spaces, you may receive an error message similar to the following:
Error: java.net.UnknownHostException: 11.22.33.142: Name or service not known.
Property Syntax
Syntax for ZooKeeper propertyzookeeper: "<host1>:2181,<host2>:2181"
The zookeeper host is the hostname (or IP address) where ZooKeeper is located.
- If ZooKeeper is an embedded ZooKeeper on the main coordinator node,
then the ZooKeeper hostname is the hostname of the main coordinator node.
zookeeper: "<main-coordinator-host1>:2181,<main-coordinator-host2>:2181" - If ZooKeeper is on an external node, then the ZooKeeper hostname is the hostname of the node where it is located.
zookeeper: "<zookeeper-host1>:2181,<zookeeper-host2>:2181"