Pre-requisites
- OpenJDK8
- Zookeeper
- git
- maven@v3.3.9
Install OpenJDK
|
...
Building Apache Zookeeper
Download Some distributions like Ubuntu/Debian comes with latest zookeeper. Hence you can just install using apt-get command "sudo apt-get install zookeeper". If your distribution does not come with zookeeper then just go for latest download and unzip the Zookeeper package from Official Apache archive in all machines that will be used for zookeeper quorum as shown below:
...
Edit zoo.cfg and the below
$ vi zoo.cfg |
|
Now, do the below changes in log4.properties
file as follows.
$ vi log4j.properties |
zookeeper.log.dir=/var/log/zookeeper zookeeper.tracelog.dir=/var/log/zookeeper log4j.rootLogger=INFO, CONSOLE, ROLLINGFILE |
...
$ /home/zookeeper/zookeeper-3.4.13/bin/zkServer.sh status |
Zookeeper Service Status Check.
In Zookeeper ensemble If you have 3 nodes, out of them, one will be in leader mode and other two will be in follower mode. You can check the status by running the following commands. If you have just one then it will be standalone.
...
Install Pre-requities for Build
|
Hooking up upstream Maven 3.3.9 (for Debian Jessie only)
...