Tag Archives: zookeeper

Zookeeper Study Summary

In terms of CAP theorem, Zookeeper is a CP system. It emphasizes consistency in distributed system. It is a Leader – Follower based system. Zookeeper assumes that at least n/2+1 nodes are available. This guarantees brain-split won’t happen to zookeeper. How to handle partial failure? For example, there are 5 nodes. 2 of them are down.… Read More »

zookeeper java.net.ConnectException: Connection refused

Today when I ran zookeeper by zkServer.sh start. It doesn’t run. Because I couldn’t see the port 2181 by netstat command. Then I tried zkServer.sh start-foreground. It showed error below: 2016-02-01 21:38:37,110 – FATAL [main:QuorumPeerMain@83] – Invalid config, exiting abnormally org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /home/hadoop/zookeeper/zookeeper-3.3.6/bin/../conf/zoo.cfg at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:110) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:99) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:76) Caused by: java.lang.IllegalArgumentException: /tmp/zookeeper/myid file is… Read More »