Configuring ZooKeeper for HADR
The i2 Analyze configuration specifies the structure of your ZooKeeper ensemble. To provide high availability, configure a ZooKeeper ensemble with an odd number of severs.
About this task
Procedure
Edit the
configuration\environment\topology.xml
file to specify your ZooKeeper
servers.
For
example:
<zookeeper id="zoo">
<zkhosts>
<zkhost
host-name="zookeeper_server1_host_name" id="1"
port-number="9983" quorum-port-number="10483" leader-port-number="10983"
data-dir="C:/i2/i2analyze/data/zookeeper"
/>
<zkhost
host-name="zookeeper_server2_host_name" id="2"
port-number="9983" quorum-port-number="10483" leader-port-number="10983"
data-dir="C:/i2/i2analyze/data/zookeeper"
/>
<zkhost
host-name="zookeeper_server3_host_name" id="3"
port-number="9983" quorum-port-number="10483" leader-port-number="10983"
data-dir="C:/i2/i2analyze/data/zookeeper"
/>
</zkhosts>
</zookeeper>
Where
zookeeper_serverx_host_name is
the hostname of the ZooKeeper server.
Each
<zkhost>
element must have a
unique value for the id
attribute.
For more information about the possible values for each attribute, see ZooKeeper.