An introduction to zookeeper
Because you want to use kafka, But I don’t want to use the built-in Kafka, and considering that it needs to be used in other places, such as distributed jobs, I t
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.
An introduction to zookeeper
Because you want to use kafka, But I don’t want to use the built-in Kafka, and considering that it needs to be used in other places, such as distributed jobs, I t
http://blog.csdn.net/shirdrn/article/details/7183503/
https://www.ibm.com/developerworks/cn/data/library/bd -zookeeper/
https://www.ibm.com/developerworks/cn/opensource/os-cn-zookeeper/
zookeeper cluster installation Environment: centos7.4 IP address: 192.168.215.129 Software: zookeeper-3.4.12 Configuration file Detailed Explanation After ZooKeeper is installed, you can find a fil
The JDK must be configured before zookeeper installation
JDK version: 1.8
zookeeper version: 3.4
zookeeper has the function of supervising the working status of the cluster, It do
The realization principle of ZooKeeper distributed lock
One, java environment installation 1. Download jdk Go to jdk to download URL download or download with command in the server
wget –no-check-certificate –no-cookies –header “Cookie: oraclel
1. Summarize some concepts:
Install zookeeper 3.4.6
cp zoo_sample.cfg zoo.cfg
vim zoo.cfg tickTime=2000
initLimit=10
syncLimit=5
dataDir=/opt /software/zookeeper-3.4.6/data
dataLogDir=/
Zookeeper environment setup download download the latest version from the mirror site
http:/ /mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/
Download all historical versions from the documentation
zookeeper is an open source distributed coordination framework: data publishing and subscription, load balancing, clustering, master election.
Atomicity: either succeeds at the same time or f
First of all, this blog doesn’t have any theoretical stuff, it just explains in detail the process of setting up a cluster of kafka and zookeeper, which requires three linux servers.
Java env