How to install Hadoop ZooKeeper via YUM on CentOS 6.x

首先下载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

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注