In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
ZooKeeper is a distributed, open source distributed application coordination service, an open source implementation of Google's Chubby, and an important component of Hadoop and Hbase. It is a software that provides consistency services for distributed applications, including configuration maintenance, domain name services, distributed synchronization, group services and so on.
one。 Log in to H2 as hadoop user
Decompress tar xvf zookeeper-3.4.5.tar.gz mv zookeeper-3.4.5 zookeeper
Create a new folder: mkdir-p temp/zookeeper
Add the file myid and add the following to it: 1
Create a new zookeeper/conf/zoo.cfg file:
Touch zookeeper/conf/zoo.cfg
Modify the zookeeper/conf/zoo.cfg to read as follows:
TickTime=2000
InitLimit=10
SyncLimit=5
DataDir=temp/zookeeper
ClientPort=2181
Server.1=h2:2888:3888
Server.2=h3:2888:3888
Server.3=h4:2888:3888
Distribute the zookeeper to the remaining two nodes:
Scp-r zookeeper h3purl /
Scp-r zookeeper h4purse /
two。 Log in to h3 as hadoop user
Create a new folder: mkdir-p temp/zookeeper
Add the file myid and add the following to it: 2
three。 Log in to h4 as hadoop user
Create a new folder: mkdir-p temp/zookeeper
Add the file myid and add the following to it: 3
four。 Log in to H2 as hadoop user
Execute the following command to start the Zookeeper cluster:
Ssh h3 / home/hadoop/zookeeper/bin/zkServer.sh start
Ssh h4 / home/hadoop/zookeeper/bin/zkServer.sh start
five。 Execute / home/hadoop/zookeeper/bin/zkServer.sh status to check the cluster status
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.