To support high available Zookeeper service, we need to configure Zookeeper ensemble. But this is not enough. we need to understand how client manages connection to Zookeeper server. For test, I set up a Zookeeper ensemble. (port : 2181, 2182, 2183) After then, write a test client with 2 important parameters - 1) connect string … Continue reading Building a robust Zookeeper client : connection management
Category: Zookeeper
Programming Zookeeper – Watcher
The common pattern of Zookeeper is 1) to check existence of a znode or 2) to read a znode data. Let's suppose that you are building a program which does some action whenever a znode data is changed. The way to implement it is 1) to read the znode data periodically or 2) to get … Continue reading Programming Zookeeper – Watcher
Programming Zookeeper – Connecting to Zookeeper
When programming Zookeeper in Java, Zookeeper client or Curator is used. Zookeeper client is embedded in Zookeeper server library Curator is a wrapper for Zookeeper client, which enables easier programming There are something to consider when programming Zookeeper. The first point is connecting to Zookeeper. Let's suppose that you make a program which connects to … Continue reading Programming Zookeeper – Connecting to Zookeeper
Building Zookeeper cluster
Zookeeper is a cluster management solution. Therefore, Zookeeper needs to be set up as a cluster. If not, it can be the Single Point of Failure. Zookeeper cluster is called "ensemble". How to set up ensemble (based on v3.4.10) Basic config for a single Zookeeper is as follows. To change it into ensemble, add some … Continue reading Building Zookeeper cluster
The use of Zookeeper
Zookeeper was developped to support Hadoop cluster. Afterward, it has become an independent cluster management solution, although it is still used as Hadoop cluster manager. I used Zookeeper as a cache cluster management solution which has nothing to do with Hadoop. Now, I'm showing you some use of Zookeeper. Basic knowledge Zookeeper keeps internal data … Continue reading The use of Zookeeper