Hadoop入门(二):ZooKeeper单机安装

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://daichen.blog.csdn.net/article/details/9069453

 

ZooKeeper安装


1下载解压

cd /usr/local/src

wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz

tar zxvf zookeeper-3.4.5.tar.gz


2配置

cd zookeeper-3.4.5

cp conf/zoo_sample.cfg conf/zoo.cfg

 

export ZOOKEEPER_HOME=/usr/local/src/zookeeper-3.4.5

export PATH=$ZOOKEEPER_HOME/bin:$PATH


3启动

zkServer.sh start


4测试

zkCli.sh -server 127.0.0.1:2181


参考资料

1 CentOS下安装单机版zookeeper

http://blog.csdn.net/lkernel/article/details/8116415

 

http://jbowles.github.io/blog/2013/02/09/zookeeper-on-centos/

 

展开阅读全文

没有更多推荐了,返回首页