Introduction and features of Hadoop core components zookeeper

Source: Internet
Author: User

Zookeeper is a reliable coordination system for large-scale distributed systems.

1) It provides functions including: Configuration maintenance, Name service, distributed synchronization, group service, etc.

2) Its goal is to encapsulate the complex error-prone key services, the easy-to-use interface and performance-efficient, stable system to provide users;

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/85/4C/wKioL1efSRjyJhpCAAgx-x98GrQ038.png-wh_500x0-wm_3 -wmp_4-s_3821296318.png "title=" Zookeeper1. PNG "alt=" Wkiol1efsrjyjhpcaagx-x98grq038.png-wh_50 "/>

Characteristics:

1, Final consistency: show the same attempt for the client

2, Reliability: If a message is accepted by a single server, it will be accepted by all servers.

3, real-time: Zookeeper does not guarantee that two clients have the data just updated at the same time, if you need the latest data, you should call the sync () interface before reading the data.

4, wait unrelated (Wait-free): Slow or invalid client does not intervene in fast client requests.

5, atomicity: The update operation either succeeds or fails with no intermediate state.

6, Sequential: For all servers, the same message is published in a consistent order.


Basic principle

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/85/4C/wKiom1efTNnA4ZCeAAX4DF7vo0w159.png-wh_500x0-wm_3 -wmp_4-s_1223101739.png "title=" Zookeeper2. PNG "alt=" Wkiom1eftnna4zceaax4df7vo0w159.png-wh_50 "/>

Server many, there are master and slave points, but there is a leader, the other is follower,

Each server, in memory, holds a piece of data that, when launched, will elect a leader, elected under the Poxos agreement

Leader is responsible for handling data update operations, using the ZAB protocol

A successful flag for the update operation, most servers in memory, successfully modified data (one with 5, 3 write succeeded)


This article is from the "I am the program my biggest" blog, please be sure to keep this source http://skinglzw.blog.51cto.com/10729606/1833186

Introduction and features of Hadoop core components zookeeper

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.