The following is the step-by-step process to download, install, and configure ZooKeeper:
The download link for ZooKeeper is http://apache.mirrors.lucidnetworks.net/zookeeper/.
So, let's download the latest release of ZooKeeper using the following command:
wget http://apache.mirrors.lucidnetworks.net/zookeeper/stable/zookeeper-3.4.6.tar.gz
Extract it as follows:
tar –xvzfzookeeper-3.4.6.tar.gz
Rename this file for an easy naming convention:
mv zookeeper-3.4.6.tar.gz zookeeper
Move it to a desired location:
mv zookeeper ~/hbinaries/ cd ~/hbinaries/zookeeper/conf vim zoo.cfg
Now, add the following lines:
dataDir=/mnt/disk1/zookeeperData#Assuming the layout of the reader's filesystem> tickTime=2000 clientPort=2181
Here,
dataDir
is the location where the memory snapshot database of ZooKeeper will be stored,tickTime
is the heartbeat interval for session timeout in milliseconds, andclientPort
is the port where the client connection will be accepted and ZooKeeper...