Zookeeper installation and use in the Windows environment

Source: Internet
Author: User

I. INTRODUCTION
Zookeeper is a distributed, open source distributed application Coordination Service that is an open source implementation of Google's chubby and an important component of Hadoop and HBase. It is a software that provides consistent services for distributed applications, including configuration maintenance, domain name services, distributed synchronization, group services, and so on.
The goal of zookeeper is to encapsulate complex and error-prone services that provide users with easy-to-use interfaces and performance-efficient, robust systems.
The zookeeper contains a simple set of primitives that provide both Java and C interfaces.
The Zookeeper code version provides a distributed, exclusive lock, election, queue interface, and the code is zookeeper-3.4.8\src\recipes. Where the distribution locks and queues have Java and C two versions, the election is only Java version.

Two. Download
Apache official download,: https://www.apache.org/dyn/closer.cgi/zookeeper/

three. Install
Extract to the specified directory D:\software\zookeeper-3.4.11
Modify zoo_sample.cfg file name (D:\soft\ zookeeper-3.4.8\conf) for Zoo.cfg
mainly modify the log location, the specific configuration file is as follows:

# the number of milliseconds of each tickticktime=2000# the number of ticks that the initial  # synchronization phase can takeinitlimit=10# the number of ticks so can pass between # Sending a request and getting an  acknowledgementsynclimit=5# the directory where the snapshot is stored.# does not use/tmp for storage,/tmp here is just # Example Sakes.datadir=d:\\software\\zookeeper-3.4.11\\datadatalogdir=d:\\software\\zookeeper-3.4.11\\log # The Port at which the clients would connectclientport=2181# the maximum number of client connections.# increase this if you nee D to handle more clients#maxclientcnxns=60## is sure to read the maintenance sections of the the # Administrator guide before t Urning 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 

Simple parsing of configuration files
1.tickTime: This time is the time interval between zookeeper servers or between the client and server, which means that each ticktime time sends a heartbeat.
2.dataDir: As the name implies is zookeeper to save the data directory, by default, zookeeper will write the data log file is also stored in this directory.
3.dataLogDir: As the name implies is zookeeper save log file directory
4.clientPort: This port is the port that the client connects to the zookeeper server, and zookeeper listens to the port to accept the client's access request.

Four. Start
Go to the Bin directory and start Zkserver.cmd, a Java process is started in this script.

After startup JPs can see the quorumpeermain process.

You can also start a client connection

OK, the installation is successful, very simple.

Reference article: 52028945

Zookeeper installation and use in the Windows environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.