In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Download zookeeper 3.4.5
2. Decompression
3. Move to the right position
/ home/hadoop/zookeeper
4. Set a zookeeper location to place the data
/ home/hadoop/zk
5. Modify zookeeper configuration file
Vim / home/hadoop/zookeeper/conf/zoo.cfg
TickTime=2000
InitLimit=10
SyncLimit=5
DataDir=/home/hadoop/zk
ClientPort=2181
Server.1=hd1:2888:3888
Server.2=hd2:2888:3888
Server.3=hd3:2888:3888
Server.4=hd4:2888:3888
6. Distribute zookeeper to other nodes
Scp-r / home/hadoop/zookeeper hd2:/home/hadoop
Scp-r / home/hadoop/zookeeper hd3:/home/hadoop
Scp-r / home/hadoop/zookeeper hd4:/home/hadoop
7. Establish the myid file
Vim / home/hadoop/zk/myid
Hd1 is set to 1
Hd2 is set to 2
Analogy
7. Edit / etc/profile
# zookeeper
Export ZOOKEEPER_HOME=/home/hadoop/zookeeper
Export PATH=$PATH:$ZOOKEEPER_HOME/bin
8. Start zookeeper independently on each node
/ home/hadoop/zookeeper/bin/zkServer.sh
9. Use jps to check the status after startup
21408 QuorumPeerMain
The presence of QuorumPeerMain is correct.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.