Pre-requisites
- OpenJDK8
- Zookeeper
Install OpenJDK
|
...
|
Building Apache Zookeeper
Download and unzip the Zookeeper package from Official Apache archive in all machines that will be used for zookeeper quorum as shown below:
$ tar -xzvf zookeeper-3.4.12.tar.gz |
Create zookeeper user
|
Now, Create the directory zookeeper
under /var/lib
folder which will serve as Zookeeper data directory and create another zookeeper
directory under /var/log
where all the Zookeeper logs will be captured. Both of the directory ownership need to be changed as zookeeper.
$ sudo mkdir /var/lib/zookeeper $ cd /var/lib $ sudo chown zookeeper:zookeeper zookeeper/ $ sudo mkdir /var/log/zookeeper ; cd /var/log ; sudo chown zookeeper:zookeeper zookeeper/ |
Edit the bashrc
for the zookeeper user via setting up the following Zookeeper environment variables.
...