What is Zookeeper
is an open source, distributed, Apache project that provides collaborative services for distributed applications
Provides a simple set of primitives so that with distributed applications can build higher-level synchronization services on top of him
The design is very simple and easy to program, and he uses a tree-like data structure similar to that of a file system.
The goal is to have distributed services no longer need to have collaboration conflicts and to implement collaborative services in addition
From the point of view of design pattern, it is a distributed service management framework based on the observer design pattern.
Stop the services on the node first
Execute the command on node one: sbin/stop-dfs.sh
Then execute the command on node two: sbin/stop-yarn.sh
Upload the Zookeeper file up
Then set the Zookeeper permissions to executable
Extract zookeeper to/opt/moudles using command: TAR-ZXVF zookeeper-3.4.5.tar.gz-c/opt/modules/
Next modify the Zookeeper configuration file
To modify the configuration file name
Create a folder in the Zookeeper directory
Copy this path, and then go to config file to modify this, and the rest do not need to be modified
After the configuration is complete, start zookeeper, and in the Zookeeper directory, execute the command: bin/zkserver.sh start
View zookeeper status can be seen as a stand-alone node
command to enter the client: bin/zkcli.sh
To create a command for a node:
Create/test "Test-data"
View node Command LS/
Gets the node command get/test (the data below is the attribute information for this node)
Delete node: rmr/test
Here, the local installation is over!
"Hadoop Distributed Deployment Eight: Distributed collaboration framework zookeeper architecture features explained and local mode installation deployment and command use"