-
Notifications
You must be signed in to change notification settings - Fork 31
Installing Zookeeper
Zookeeper is mandatory dependency for running Jetstream app. It can be installed locally or use dockerized zookeeper container by pulsar.
-
Download and extract Zookeeper
-
copy zookeeper-3.4.5/conf/zoo_sample.cfg to zoo.cfg.
-
Edit zoo.cfg file and change dataDir property to zookeeper folder.
-
cd to bin folder and start zookeeper
on windows by executing zkServer.cmd on unix by executing zkServer.sh start
-
Verify Zookeeper is up by looking at logs and checking for tcp port # 2181 which zookeeper binds to by default.
There is a docker container jetstream/zookeeper available on docker hub, you can use the docker to start a single node zookeeper instance for testing or development purpose.
Run: sudo docker run -d -p 0.0.0.0:2181:2181 --name zkserver -t "jetstream/zookeeper"
It will start a single node zookeeper and listen on the docker host 2181 port.