Pre-requisites
- OpenJDK8
- Zookeeper
- git
- maven@v3.3.9
Install OpenJDK
|
...
$ 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/ Note: While running the zookeeper if you get a message something like below you may need to check/change for permissions of the files under /var/lib/zookeeper and /var/log/zookeeper. Since I have loged-in as linaro and running zookeeper. I have changed the permission to linaro user. linaro@node1:~/drill-setup/zookeeper-3.4.12$ ./bin/zkServer.sh start ZooKeeper JMX enabled by default Using config: /home/linaro/drill-setup/zookeeper-3.4.12/bin/../conf/zoo.cfg Starting zookeeper ... ./bin/zkServer.sh: line 149: /var/lib/zookeeper/zookeeper_server.pid: Permission denied FAILED TO WRITE PID |
Edit the bashrc
for the zookeeper user via setting up the following Zookeeper environment variables.
...
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)
...