Instantly share code, notes, and snippets.

Embed
What would you like to do?
tar -zxf zookeeper-*.tar.gz
mv zookeeper-* /usr/local/zookeeper
cat > /usr/local/zookeeper/conf/zoo.cfg << EOF
tickTime=2000
dataDir=/var/lib/zookeeper
clientPort=2181
EOF
export JAVA_HOME=/usr/java/jdk[...]
#
# If you don't want to use root: https://stackoverflow.com/questions/19295978/failed-to-write-pid-installing-zookeeper
#
/usr/local/zookeeper/bin/zkServer.sh start
# JMX enabled by default
# Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
# Starting zookeeper ... STARTED
# Test
telnet localhost 2181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment