In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Download from Apache open source official website (binary version, source version as needed)
Https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/
two。 Download binary plate
Apache-zookeeper-3.5.6-zookpeeper-bin
3. Put it directly in the directory you want to install
/ home/virtul-cluster-zookeeper/
4. Configure zoo.cfg
TickTime=2000
InitLimit=10
SyncLimit=5
DataDir=/home/virtul-cluster-zookeeper/apache-zookeeper-3.5.6-zookpeeper1-bin/zookeeper
ClientPort=2181
Server.1=127.0.0.1:2882:3882
Server.2=127.0.0.1:2883:3883
Server.3=127.0.0.1:2884:3884
Create a myid content of 1 three-node myid under the $dataDir directory (1, 2, 3)
5. Configure JAVA environment variables before startup
Export JAVA_HOME=/home/jdk1.8.0_131
Or echo "export JAVA_HOME=/home/jdk1.8.0_131" > > / etc/profile & & source / etc/profile
6. Start zookeeper
. / bin/zkServer.sh start
7. View statu
. / bin/zkServer.sh status
Note:
The x in the server.x of 1.zoo.cfg corresponds to the myid value
The 2.dataDir directory should be configured correctly
JAVA_HOME environment variable is required for 3.zookeeper to run
4. To remove the cluster and turn it into a standalone comment zoo.cfg and other server.x
# server.1=127.0.0.1:2882:3882
# server.2=127.0.0.1:2883:3883
# server.3=127.0.0.1:2884:3884
Zookeeper status after startup: Mode: standalone
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.