Zookeeper simple

浅尝 zookeeper

1、下载

wget http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz -P /opt

http://www.apache.org/dist//zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz

2、创建用户,解压

useradd    hadoop

passwd hadoop

cd    /opt/

tar   -xf    zookeeper-3.4.8.tar.gz

mv     zookeeper-3.4.8   zookeeper

3、修改全局文件

vim .bashrc

# ZooKeeper Env

export  ZOOKEEPER_HOME=/opt/zookeeper

export  PATH=$PATH:$ZOOKEEPER_HOME/bin

4、启动

cd  /opt/zookeeper/bin

./zkServer.sh   start      —启动

./zkServer.sh   stop       —失败

5、进阶版本

下次更新

点击 here

    原文作者:王哲理
    原文地址: https://www.jianshu.com/p/9e1f30cfe227
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞