In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "what does Zookeeper mean". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn this article "what does Zookeeper mean?"
Zookeeper ensures transaction consistency when data is transferred in a ZK cluster.
Zookeeper is a file system that contains a file system, similar to Linux. Each set of catalog results can be written to data.
As a sub-project of Hadoop project, Zookeeper is an indispensable module of Hadoop cluster management. It mainly controls the data in the cluster, such as managing NameNode in Hadoop cluster, and state synchronization between Master Election and Server in Hbase.
Zookeeper function:
Zookeeper enhances cluster stability:
Zookeeper enables distributed processes to collaborate with each other through a hierarchical namespace that is very similar to the file system. These namespaces are created by the
Consists of a series of data registers, which we also call Znodes. These Znodes are kind of like file systems.
Files and folders in the. Unlike the file system, the files of the file system are stored on the storage area, while the Zookeepe
R's data is stored in memory. At the same time, this means that Zookeeper has high throughput and low latency.
Zookeeper achieves high performance, high reliability, and orderly access. High performance ensures that Zookeeper can be used in large-scale
On a distributed system. High reliability ensures that it will not cause any problems due to the failure of a single node, and orderly access can ensure guests.
Household orders can achieve more complex synchronization operations.
Zookeeper enhances cluster persistence:
The servers that make up the Zookeeper must be able to communicate with each other. They keep the server state in memory, as well as
Log of operations, and persist snapshots, as long as most of the servers are available, then Zookeeper is available
The client connects to a Zookeeper server, maintains an TCP connection, sends requests, gets replies, and gets events
And send a connection signal. If the TCP connection is disconnected, the client can connect to another server.
Zookeeper ensures the order of the cluster:
Zookeeper uses numbers to mark each update, which ensures the order of Zookeeper interactions and subsequent operations
According to this order, you can start with higher and more abstract services such as synchronous operations.
Zookeeper ensures cluster efficiency:
The efficiency of Zookeeper is more reflected in the read-based system, and Zookeeper can be used in the read-write ratio of thousands of servers.
Performed well on a distributed system at about 10:1.
Data structures and hierarchical namespaces:
The structure of the Zookeeper namespace is very similar to that of the file system. A path table with a name that uses / like a file shows that each node of the Zookeeper is uniquely identified by the path.
Specific roles of Zookeeper in Hadoop and Hbase:
Hadoop has NameNode,Hbase and HMaster, so why do you need Zookeeper? let's give you an example.
Introduction.
In the case of a Zookeeper cluster with 3 Zookeeper nodes, one leader and two follower, stop
Leader, and then two follower elect a leader, and the data is the same. I think Zookeeper can help.
Hadoop does this:
Hadoop uses Zookeeper event handling to ensure that there is only one Namenode for the entire cluster, which stores configuration information
HBase uses Zookeeper's event handling to ensure that the entire cluster has only one HMaster and detects HRegionServer
Online and downtime, storing access control lists, etc.
The above is all the contents of this article "what does Zookeeper mean?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.