美文网首页
Hadoop生态圈与Zookeeper应用实践

Hadoop生态圈与Zookeeper应用实践

作者: congchp | 来源:发表于2017-12-21 21:40 被阅读0次

    1. 上传、解压zookeeper安装文件

    tar -zxvf zookeeper-3.4.10.tar.gz

    2. 创建软连接

    ln -s /bigdata/zookeeper-3.4.10 /usr/local/zookeeper

    3. 修改zoo.cfg

    dataDir=/usr/local/zookeeper/data

    dataLogDir=/usr/local/zookeeper/log

    server.1=node01:2888:3888

    server.2=node02:2888:3888

    server.3=node03:2888:3888

    4. 创建data, log文件

    5. 修改环境变量

    /etc/profile

    export ZOOKEEPER_HOME=/usr/local/zookeeper

    export PATH=$PATH:$ZOOKEEPER_HOME/bin:$JAVA_HOME/bin:$MYSQL_HOME/bin

    6.将zookeeper目录copy到node02,node03中

    scp -r /bigdata/zookeeper-3.4.10 root@node02:/bigdata/

    7.启动zookeeper

    相关文章

      网友评论

          本文标题:Hadoop生态圈与Zookeeper应用实践

          本文链接:https://www.haomeiwen.com/subject/cllzwxtx.html