In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Single node installation reference: http://blog.sina.com.cn/s/blog_6f6bc30e0101pb13.html
Zookeeper cluster installation
Note: 1. Note that / etc/hosts needs to be configured 2. Pay attention to opening the iptables communication between each node
The configuration file for the three hosts is as follows: [root@DB-23 zookeeper] # more conf/zoo.cfg | grep-v "#"
TickTime=2000
InitLimit=10
SyncLimit=5
DataDir=/data/app/zookeeper/data
ClientPort=2181
Autopurge.purgeInterval=1
Server.1=10.32.7.113:2889:3888
Server.2=10.32.7.112:2889:3888
Server.3=10.32.7.111:2889:3888
Modifying the myidmyid of each machine needs to correspond to the number after the server in the configuration file
[root@DB-23 data] # pwd
/ data/app/zookeeper/data
[root@DB-23 data] # more myid
1 [root@DB-22 data] # pwd
/ data/app/zookeeper/data
[root@DB-22 data] # more myid
two
[root@DB-21 data] # pwd
/ data/app/zookeeper/data
[root@DB-21 data] # more myid
three
Start the zookeeper of each machine and verify [root@DB-21 conf] # zk-server status
JMX enabled by default
Using config: / data/app/zookeeper/bin/../conf/zoo.cfg
Mode: follower
[root@DB-22 conf] # zk-server status
JMX enabled by default
Using config: / data/app/zookeeper/bin/../conf/zoo.cfg
Mode: leader-- selected leader
[root@DB-23 data] # zk-server status
JMX enabled by default
Using config: / data/app/zookeeper/bin/../conf/zoo.cfg
Mode: follower
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: 262
*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.