3.8.1
" (choose a mirror site for your download):
http://zookeeper.apache.org/releases.html
apache-zookeeper-3.8.1-bin.tar.gz
" in the folder you want to install ZooKeeper: /opt/apache-zookeeper-3.8.1-bin
data_1
", "data_2
", "data_3
"):
data-log_1
", "data-log_2
", "data-log_3
"):
logs_1
", "logs_2
", "logs_3
"):
conf_1
", "conf_2
", "conf_3
"):conf/
" folder to each configuration folder:zoo.cfg
" for each configuration folder:conf_1/zoo.cfg
", "conf_2/zoo.cfg
", "conf_3/zoo.cfg
"),
you need to do the following:dataDir
" and "dataLogDir
":conf_1/zoo.cfg
):conf_2/zoo.cfg
):conf_3/zoo.cfg
):clientPort
" and "clientPortAddress
".conf/zoo.cfg
" file.
They should be part of the ZooKeeper instances configuration (see above).admin.serverPort
" to override the default value.
This allow each instance to have its unique port for AdminServer http interface.conf_1/zoo.cfg
"):conf_2/zoo.cfg
"):conf_3/zoo.cfg
"):zookeeper-env.sh
"
to initialize the environment variables "ZOOCFGDIR
" and "ZOO_LOG_DIR
"./opt/zookeeper/conf_1/zookeeper-env.sh
":/opt/zookeeper/conf_2/zookeeper-env.sh
":/opt/zookeeper/conf_3/zookeeper-env.sh
":%ZK_HOME%\bin\zkServer.cmd
" file.%ZOOCFG%
" parameter from the line command.zoo.cfg
":/opt/zookeeper/conf_1/zoo.cfg
:
/opt/zookeeper/conf_2/zoo.cfg
:
/opt/zookeeper/conf_3/zoo.cfg
: