Saturday, January 28, 2017

Install zookeeper package

As part of the Kafka streaming project, I installed zookeeper. Here's how I did that:

Ref: Apache Zookeeper

tar xf zookeeper-3.4.9.tar.gz -C /opt/
sudo  cp  /opt/zookeeper-3.4.9/conf/zoo_sample.cfg /opt/zookeeper-3.4.9/conf/zoo.cfg

sudo /opt/zookeeper-3.4.9/bin/ start
#ensure zk is running
echo stat | nc 2181

With nothing connecting to zookeeper, the output will look something like:

Zookeeper version: 3.4.9-1757313, built on 08/23/2016 06:50 GMT

Latency min/avg/max: 0/0/0
Received: 2
Sent: 1
Connections: 1
Outstanding: 0
Zxid: 0x0
Mode: standalone
Node count: 4

No comments:

Post a Comment