1. wget https://mirrors.cnnic.cn/apache/zookeeper/stable/zookeeper-3.4.12.tar.gz
tar -zxvf zookeeper-3.4.12. tar.gz Unzip
2. cd zookeeper-3.4.12
cp -rf conf/zoo_sample.cfg conf /z
ZooKeeper is a distributed, open source distributed application coordination service, 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. The functions provided include: configuration maintenance, domain name services, distributed synchronization, group services, etc.
1. wget https://mirrors.cnnic.cn/apache/zookeeper/stable/zookeeper-3.4.12.tar.gz
tar -zxvf zookeeper-3.4.12. tar.gz Unzip
2. cd zookeeper-3.4.12
cp -rf conf/zoo_sample.cfg conf /z
Preparation work Upload zookeeper-3.4.6.tar.gz, scala-2.11.4.tgz, kafka_2.9.2-0.8.1.1.tgz, slf4j-1.7.6.zip to the /usr/local directory
Unzip the zookeeper installation package
# tar -zx
One ZooKeeper function 1. File system
2. Notification mechanism
Each sub-directory item is called a znode. Like the file system, we can add and delete znodes freely. Add or delete sub-z
Background ConnectionLoss link is lost SessionExpired session expired Bypass zookeeper broker for status notification leader election Disconnect from zkNode Do idempotent Static expansion, dynamic
hash_ring
#- *- coding: utf-8 -*-
“”” hash_ring
~~~~~~~~~~~~~
Implements consistent hashing that can be used when
the number of server nodes can increase or decrease (like in memcached) .
zookeeper registration center zookeeper
zookeeper is a sub-project of Apacahe Hadoop. It is a tree-type directory service that supports change push (< span style="color: #ff0000">When the inf
Znode:
1. Znode is both a path (directory) and information (file)
2, Znode has two categories: One is divided into temporary nodes (session life cycle) and permanent nodes; two are divi
ZookeeperIntroduction to the concept:
Zookeeperis a distributedcoordination Service; is to provide coordination services for users’ distributed applications
A, zookeeperis for other dis
This article is reproduced from: https://www.cnblogs.com/lanqiu5ge/p/9405601.html#_label2, there will be minor adjustments.
Extended reading:
Contents
ZooKeeper is an open source
Foreword PaxosThe algorithm is An algorithm used to solve how to agree on a certain value in a distributed system. Its degree of obscurity can completely match its importance. At present, there are