Brief introduction of Zookeeper---> direct online Baidu translation of the official website
Zookeeper is a centralized service that maintains configuration information, names, provides distributed synchronization, and provides group services. These various types of services are used by distributed applications in some way. Whenever an application implements these services, it inevitably introduces a lot of work to fix bugs and competitive conditions. Because the difficulty of implementing these services is that the application usually skips them at first, making the application difficult to maintain and manage when changes occur. Even when the application has been deployed, the implementation of different services will lead to management complexity.
Zookeeper is a high-performance Distributed system coordination Service. It exposes public services: like naming, configuration management, synchronization, and group services in a simple interface, so you don't need to implement them from scratch. You can use off-the-shelf zookeeper to achieve consensus, group management, leadership elections, and business agreements. And you can build your own specific needs on top of it.
1. Download the latest zookeeper directly from the official website and unzip it to the root directory of a hard drive (easy to operate) address: http://zookeeper.apache.org/
2. Add the Zoo.cfg file under the Conf directory of zookeeper (which is named because the file is started by default for the specified profile, and should be able to specify a custom profile for the time being started), as follows:
# The number of milliseconds of each tick
ticktime=2000
# The number of ticks that initial
# Synchronization phase can take
initlimit=10
# The number of ticks that can pass between
# Sending a request and getting an acknowledgement
Synclimit=5
# The directory where the snapshot is stored.
# do not use/tmp for storage,/tmp here are just
# example Sakes.
Datadir=/tmp/zookeeper
# The port at which the clients would connect
clientport=2181
# The maximum number of the 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 Auto Purge feature
#autopurge. purgeinterval=1
3. The Command Window mode enters Zookeeper Bin directory, enter Zkserver.cmd carriage return to start the success, as shown in the figure below
The above section is a simple installation and the steps to start zookeeper, the following describes the interface visualization using the management zookeeper method based on IntelliJ idea of the use of visual Tools
1 Installing the Zookeeper plug-in
2 Configuring Zookeeper Connection Information
3 Starting Management Zookeeper