![]() Create a zookeeper directory in the lib folder. You need to replace the Zookeeper_IP with relevant IP or resolvable hostnames.ħ. In the above code, server 1, 2 and 3 represent our three zookeeper servers. Create a zoo.cfg file in /opt/zookeeper/conf directory with the configurations shown below. Rename the zookeeper app directory cd /optĦ. Untar the application to /opt folder sudo tar -xf zookeeper-3.5. -C /opt/ĥ. b If you wish to choose another version, you can get the download links from here. You need to perform the following steps in all the three VM’s.ġ. Note: If you are using AWS or any other cloud provider, apart from server level inbound connections, make sure you enable the security groups or endpoints for the zookeeper ports. If IPtables is enabled, make sure you enable the specified ports because zookeeper communication happens through these ports. VM’s with inbound connections on ports 2888, 38. For example, if you set up 5 servers, the cluster can handle two failed nodes and so on.Ģ. ![]() For high availability cluster, you can go with any odd number above 3. ![]() Setup a Zookeeper Cluster Prerequisitesġ. In this article, we have explained the necessary steps to install and configure zookeeper cluster with a definite quorum. Zookeeper is a distributed coordination tool which can be used for various distributed workloads.
0 Comments
Leave a Reply. |