well written article
Introduction and application of Zookeeper Api (java) (transfer)
Follow the example to learn the usage of ZooKeeper: Curator Framework Application
http://www.cnblogs.com/carl10086/p/6083799.html
http://www.cnblogs.com/Bonker/p/3499038.html