Procedure
- Go into <TalendRuntimePath>/zookeeper.
-
Before starting Zookeeper, you need to provide a configuration file. Two
configuration files are provided:
<TalendRuntimePath>/zookeeper/conf/zoo.cfg, the
default one, and zoo_sample.cfg. For a testing purpose,
if you do not want to edit the default file, you can just rename the
zoo_sample.cfg to zoo.cfg.
Edit it and change the settings as follows:
tickTime=2000 dataDir=./var/locator clientPort=2181
-
The tickTime refers to the basic unit of time measurement used by ZooKeeper, used for later configuration of timeouts and other parameters.
-
The dataDir holds database snapshots and transaction logs. Check the ZooKeeper Administration Manual for information on all possible parameters.
-
The
clientPort
number should be same as theendpointPrefix
defined in LocatorFeature above.
-
-
Once the zoo.cfg file configured, you can start or
stop the zooKeeper by running:
-
<TalendRuntimePath>/zookeeper/bin/zkServer.cmd start/stop
on Windows. -
<TalendRuntimePath>/zookeeper/bin/zkServer.sh start/stop
on Linux.
Example
-
- Start the Container, for details on this please refer to .