Zookeeper Cluster construction process:
1, download zookeeper installation package, decompression and installation;
2, under/etc/profile configuration ZOOKEEPER environment variable, add variable $zookeep_home=zookeeper installation directory, and then add $zookeeper_home/bin to $path variable;
3, the Zookeeper installation directory Conf zoo_sample.cfg Save as ZOO.CFG, and modify the relevant configuration information;
4, copy the zoo.cfg files to other servers under the cluster;
5. Create a new myID file in the data directory for each zookeeperzookeeper server, modify the ID value, and the value in the server.id configured in Zoo.cfg is consistent.
6, execute zkserver.sh start service.
Precautions:
After the service starts successfully, you can use JPS to see the zookeeper process Quorumpeermain, but the error contacting service is displayed when you view the state by zdserver.sh status. It is probably not running. " Error, turn off all server firewalls, and view the status successfully.
This article is from the "11475073" blog, please be sure to keep this source http://11485073.blog.51cto.com/11475073/1886739
Zookeeper Cluster construction under CentOS