In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the steps of building a zookeeper-3.4.6 cluster". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
We use zookeeper-3.4.6 to build zookeeper clusters with three DELL servers in hardware (firewalls have been turned off and ssh mutual trust has been configured):
192.168.4.33 bi3
192.168.4.34 bi4
192.168.4.35 bi5
1. Extract the zookeeper-3.4.6 installation package to the / home/hadoop/work directory: / home/hadoop/work/zookeeper-3.4.6
two。 Configure conf/zoo.cfg
# the directory where the snapshot is stored.# do not use / tmp for storage, / tmp here is just # example sakes.dataDir=/home/hadoop/work/zookeeper-3.4.6/var/datadataLogDir=/home/hadoop/work/zookeeper-3.4.6/var/datalog# the port at which the clients will connectclientPort=2181server.1=bi3:2888:3888server.2=bi4:2888:3888server.3=bi5:2888:3888
3. Create a new directory
Mkdir / home/hadoop/work/zookeeper-3.4.6/var/datamkdir / home/hadoop/work/zookeeper-3.4.6/var/datalog
4. Edit / home/hadoop/work/zookeeper-3.4.6/var/data/myid, the contents of the three machines are as follows:
192.168.4.33 bi31192.168.4.34 bi42192.168.4.35 bi53
Start the zookeeper cluster and execute the following commands on each of the three machines
/ home/hadoop/work/zookeeper-3.4.6/bin/zkServer.sh start
Verify that the cluster is available
[hadoop@bi5 apps] $/ home/hadoop/work/zookeeper-3.4.6/bin/zkCli.sh-server 127.0.0.1 purl 2181
Enter the client command line mode of zookeeper, create / zktest in the root directory, and check to see if it has been created successfully
[zk: 127.0.0.1 create 2181 (CONNECTED) 4] create / zktest testCreated / zktest [zk: 127.0.0.1 create 2181 (CONNECTED) 5] ls / [consumers, zktest, rmstore, mytest, spark, yarn-leader-election, spark-test, controller_epoch, dubbo, hbase, hadoop-ha, zookeeper, admin, config Brokers] [zk: 127.0.0.1 CONNECTED 2181 (CONNECTED) 6] get / zktesttestcZxid = 0xf0006967bctime = Mon Feb 15 17:19:32 CST 2016mZxid = 0xf0006967bmtime = Mon Feb 15 17:19:32 CST 2016pZxid = 0xf0006967bcversion = 0dataVersion = 0aclVersion = 0x0dataLength = 4numChildren = 0 "zookeeper-3.4.6 Cluster Building steps" ends here Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.