Zookeeper simple entry

table of Contents


Articles statement

presentation zookeeper

zookeeper usage scenarios

Uniform Naming Service

Configuration Management

Cluster Management

Shared lock

queue

Installation zookeeper

Configuration zookeeper

 

 

 

 

 


 

 

 

 

Articles statement

  Zookeeper content of this paper from the official document: https://zookeeper.apache.org/doc/r3.4.14/index.html

  

 

Zookeeper Introduction

  There is a saying to describe the official manual of Zookeeper very precise, ZooKeeper: distributed coordination service for distributed applications .

  ZooKeeper allows distributed processes by sharing hierarchical namespace coordinate with each other, similar to the namespace organization and Linux file systems, such as Linux exists in / usr / local / test this path, Zookeeper idea is to assign a path , such as / usr / local / test value 'xxxxx', distributed application process can create Zookeeer path, the path assignment, read the path value, remove the path to achieve the coordination of distributed services through these operations.    

  Each node in the figure above is called a znode, each has its own znode related properties (including giving it a value), and each node can create your own child.

  Zookeeper nodes have two, one is that every node in the path in this image; the other is Zookeeper clusters, each node is also referred Zookeeper server.

  

 

Zookeeper usage scenarios

  Zookeeper Although coordination service for distributed applications, you can look at how the zookeeper is to achieve coordination, which coordinated the case.

Uniform Naming Service

 

 

Configuration Management

 

 

Cluster Management

 

 

Shared lock

 

 

queue

 

Install Zookeeper

  In fact, Zookeeper particularly simple to install, can not be considered installed, download, unzip only need to Zookeeper, to complete the installation operations, but also requires some configuration operations.

  Download: http://zookeeper.apache.org/releases.html

  As used herein, version 3.4.14, download link  

su - root # Be sure to switch to root, 
wget http://www.trieuvan.com/apache/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz 
tar-zxf ZooKeeper-3.4.14.tar .gz 
CP-3.4.14 -R & lt ZooKeeper / usr / local / ZooKeeper

  At this point, Zookeeper on the installation was successful, but also requires some configuration to start.

 

 

Configuration Zookeeper

 

  

Guess you like

Origin www.cnblogs.com/-beyond/p/10993228.html