01-centeros7下zookeeper集群安装

2019-04-21  本文已影响0人  wshsdm

1 解压zookeeper,并进行入zookeeper-3.4.6/conf目录,拷贝zoo_sample.cfg文件为zoo.cfg文件

2 修改zoo.cfg文件,添加内容 

dataDir=/home/hadoop/hadoop-ws/zookeeper-3.4.6/data

server.1=master:2888:3888

server.2=slavea:2888:3888

server.3=slaveb:2888:3888

3 启动zookeeper集群

A:配置环境变量:

      export PATH=$PATH:/home/hadoop/hadoop-ws/zookeeper-3.4.6/bin

B:拷贝zookeeper-3.4.6/到slavea和slaveb两台机器

C:执行启动命令:

启动(三台安装zookeeper的都启动)

 zkServer.sh start

上一篇下一篇

猜你喜欢

热点阅读