"Hadoop Distributed Deployment Eight: Distributed collaboration framework zookeeper architecture features explained and local mode installation deployment and command use"

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.