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 is about what Compact and Split are in HBase. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Compact
HStore storage is the core of HBase storage, which consists of two parts, one is MemStore and the other is StoreFiles.
MemStore is Sorted Memory Buffer, and the data written by the user will first be put into MemStore. When the MemStore is full, it will be Flush into a StoreFile (the underlying implementation is HFile). When the number of StoreFile files increases to a certain threshold, Compact merge operation will be triggered, multiple StoreFiles will be merged into one StoreFile, and version merging and data deletion will be carried out in the merge process.
Therefore, we can see that HBase can only add data, and all updates and deletions are carried out in the subsequent compact process.
This enables the user's write operations to be returned as soon as they enter the memory, ensuring the high performance of HBase Imax O.
Split
After StoreFiles Compact, larger and larger StoreFile will be formed gradually, and when the size of a single StoreFile exceeds a certain threshold, it will
Trigger the Split operation, and change the current Region Split to 2 Region, the parent Region will be offline, and the 2 children from the new Split will be Region.
Will be assigned by the HMaster to the corresponding HRegionServer, so that the pressure of the original 1 Region can be diverted to 2 Region.
The following figure describes the process of Compaction and Split:
Thank you for reading! This is the end of the article on "what are Compact and Split in HBase". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.