首先下载CentOS6对应的源:
wget "http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo"
mv cloudera-cdh5.repo /etc/yum.repo.d/
然后就可以安装了:
yum install zookeeper-server
初始化ZooKeeper:
service zookeeper-server init
启动/停止ZooKeeper服务:
service zookeeper-server start
service zookeeper-server stop