sync()
메소드를 호출해 주어야 한다.watch
를 사용할 때 매우 주의해야한다.docker run -d --restart always --name zookeeper -p 2181:2181 -p 2888:2888 -p 3888:3888 zookeeper
Zookeeper CLI
$ZOOKEEPER_HOME/bin/zkCli.sh -server [hostname]:[port]
$ZOOKEEPER_HOME/contrib/ZooInspector
에 함께 들어있는 Zookepper GUI 툴#!/bin/sh # 버전과 디렉토리 적절히 변경 ZOOKEEPER_HOME=/applications/java/zookeeper-3.4.6/ ZOOINSPECTOR_HOME=${ZOOKEEPER_HOME}/contrib/ZooInspector cd $ZOOINSPECTOR_HOME java -cp $ZOOINSPECTOR_HOME/zookeeper-3.4.6-ZooInspector.jar:$ZOOINSPECTOR_HOME/lib/*:$ZOOKEEPER_HOME/*:$ZOOKEEPER_HOME/lib/* \ org.apache.zookeeper.inspector.ZooInspector