Hadoop生态圈与Zookeeper应用实践

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应用实践_第1张图片



你可能感兴趣的:(Hadoop生态圈与Zookeeper应用实践)