In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-05 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: 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.