Zookeeper (two) cluster construction + basic use

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
watch command: monitoring mechanism,
when watch is applied on ls, it is to monitor the changes of the path of the node, such as creating child nodes and deleting nodes.
When watch is applied on get, it is to monitor changes in the value of the node

PS: The validity period of adding watch monitoring is only once, if you want to monitor next time, you need to watch it on the command line again

zookeeper API
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/nikyae/article/details/112133017