作者:大地瓜1975 | 来源:互联网 | 2023-07-24 10:21
一downloadzookeeperhttps:dlcdn.apache.orgzookeeperzookeeper-3.7.0apache-zookeeper-3.7.0-bin
一 download zookeeper
https://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gzhttps://dlcdn.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz
二 配置
1解压缩至目标位置
tar -zxvf apache-zookeeper-3.7.0.tar.gz -C /usr/local/*****
2配置(在hadoop102上)
cd /usr/local/my_server/apache-zookeeper-3.7/
mkdir zkdatas/
cd conf/
cp zoo_sample.cfg zoo.cfg
vi zoo.cfg
dataDir 改为自己的zookeeper/zkdatas绝对路径
#25行去掉注释