In a deployment of i2 Analyze, the location of each Solr server and ZooKeeper server is specified in the topology.xml file. When you run the commands to deploy i2 Analyze, the Solr nodes and ZooKeeper servers are created on servers that you specify.
About this task
Add the information about your Solr and ZooKeeper servers to the configuration\environment\topology.xml file.
Procedure
- In the
topology.xml file, add at
least one
<solr-node>
element
for each Solr server in your deployment
topology.For
example:
<solr-nodes>
...
<solr-node
memory="2g"
data-dir="C:/i2/i2analyze/data/solr"
host-name="solr_server_host_name"
id="node2"
port-number="8984"
/>
</solr-nodes>
Where
solr_server_host_name is the hostname of a Solr server.
For more information about the possible values for each attribute, see
Solr.
- 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.