As part of the Kafka streaming project, I installed zookeeper. Here's how I did that:
Ref: Apache Zookeeper
wget http://apache.mirrors.pair.com/zookeeper/current/zookeeper-3.4.9.tar.gz
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/zkServer.sh start
#ensure zk is running
echo stat | nc 127.0.0.1 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
Clients:
/127.0.0.1:60706[0](queued=0,recved=1,sent=0)
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