In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The system environment variables on linux do not need to be configured when installing zookeeper
1. Download the zookeeper binary installation package (you can download the attachment or download http://www.apache.org/dyn/closer.cgi/zookeeper/) from the official website
2 decompress any path on linux. This article is created under / home/hadoop/.
Tar-zxvf zookeeper-3.4.6.tar.gz
I choose zookeeper-3.4.6.tar.gz because 3.4.6 is a stable version.
3, configure zookeeper profile
Enter / home/hadoop/zookeeper-3.4.6/conf
The case configuration file for the cp zoo_sample.cfg zoo.cfg replication package is named zoo.cfg zookeeper. The default read is zoo.cfg.
# The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial # synchronization phase can takeinitLimit=10# The number of ticks that can pass between # sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.# do not use / tmp for storage / tmp here is just # example sakes.dataDir=/home/hadoop/zookeeper-3.4.6/datadataLogDir=/home/hadoop/zookeeper-3.4.6/dataLogs# the port at which the clients will connectclientPort=12181# the maximum number of client connections.# increase this if you need to handle more clients#maxClientCnxns=60## Be sure to read the maintenance section of the # administrator guide before turning on autopurge.## http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance## The number of snapshots to retain in dataDir # autopurge.snapRetainCount=3# Purge task interval in hours# Set to "0" to disable autopurge feature#autopurge.purgeInterval=1server.1=192.168.2.200:12888:13888server.2=192.168.2.202:12888:13888server.3=192.168.2.204:12888:13888dataDir Zookeeper also saves the log file of write data in this directory. The port number of dataLogDir Zookeeper snapshot file is 12888. The port number of communication between Zookeeper is 2888 by default. The port number 13888 is the election side between Zookeeper. The slogan defaults to 3888. Each cluster for Zookeeper has a leader. If the leader of one of the machines dies, the new Leader will be selected from the machine follow in the cluster. The source of server.1 server.2 server.3 forms the cluster based on the unique identity of each server in the whole cluster after server.1 server.2 server.3. If the configuration cannot be repeated, you need to execute echo "1" > myid (the first machine), echo "2" > myid (the second machine) and echo "3" > myid (the third machine) in the dataDir directory. Start sh zkServer.sh start in zookeeper execution / home/hadoop/zookeeper-3.4.6/bin to view the execution result jpsnetstat-at | grep 12181
At this point, the environment construction of zookeeper has been completed.
The next section will introduce the environment construction of kafuka.
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.