标签:time keyword ntp 安装 进入 conf master -o operator
1、先安装hadoop,详见hadoop安装部署
2、下载安装包 zookeeper-3.4.5 解压到hadoop目录
3、编辑 vim /etc/profile 导入
export ZK_HOME=/data/hadoop272/zookeeper
export PATH=${ZK_HOME}/bin:$PATH
source /etc/profile
4、进入zookeeper/conf目录,复制zoo_sample.cfg改名zoo.cfg
cp zoo_sample.cfg zoo.cfg
5、编辑 vim zoo.cfg
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/data/hadoop272/zookeeper/data
clientPort=2181
server.1=Slave1:2888:3888
server.2=Slave2:2888:3888
server.3=Master:2888:3888
6、进入zookeeper/bin目录,启动
./zkServer.sh start
标签:time keyword ntp 安装 进入 conf master -o operator
原文地址:https://www.cnblogs.com/yangxuejun/p/9186466.html