In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how hbase provides message communication mechanism, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
Hbase relies on "Zookeeper" to provide a message communication mechanism. ZooKeeper is a distributed, open source distributed application coordination service; zookeeper, as the cluster coordinator of hbase, can coordinate and handle the activities of hbase.
Hbase relies on "Zookeeper" to provide a message communication mechanism.
HBase-Hadoop Database is a highly reliable, high-performance, column-oriented and scalable distributed storage system. Large-scale structured storage clusters can be built on cheap PC Server by using HBase technology.
ZooKeeper is a distributed, open source distributed application coordination service, an open source implementation of Google's Chubby, and an important component of Hadoop and Hbase. It is a software that provides consistency services for distributed applications, including configuration maintenance, domain name services, distributed synchronization, group services and so on.
The relationship between hbase and zookeeper
Hbase regionserver registers with zookeeper and tells zookeeper its own status information (whether online or not). When hmaster starts, it loads the system table on the zookeeper cluster, and the information of the current table can be obtained through zookeeper. The two communicate with each other. Zookeeper acts as the cluster coordinator of hbase to coordinate and deal with the activities of hbase.
Zookeeper has the following main functions:
1. Configuration management:
You can configure all the distributed machines you want through simple operation, which is simple and convenient.
2. Name service
It is equivalent to a roll book, remembering the names of all the machines.
3. Cluster management
It's quite the same as when a machine that does something for you dies, you can ask zookeeeper to assign one for you.
Characteristics of Zookeeper
1. Ultimate consistency: show the same view to the client, which is the most important feature of zookeeper.
2. Reliability: if a message is accepted by one server, it will be accepted by all servers.
3. Real-time: Zookeeper cannot guarantee that two clients can get the newly updated data at the same time. If the latest data is needed, the sync () API should be called before reading the data.
4. Wait irrelevant (wait-free): slow or invalid client does not interfere with fast client requests.
5. Atomicity: updates can only succeed or fail, and there is no intermediate state.
6. Sequence: all Server, the same message is released in the same order.
Thank you for reading this article carefully. I hope the article "how hbase provides the message communication mechanism" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.