HBase 中存储结构

来源:互联网 发布:域名云解析有什么用 编辑:程序博客网 时间:2024/05/22 05:03

在《HBase权威指南》中看到这样一段话,对于理解HBase的物理存储是很有帮助的:
The HResionServer opens the region and creates a corresponding HRegion object. When the HRegion is opened is sets up a Store instance for each HColumnFamily for every table as defined by the user beforehand.Each Store instance can ,in turn ,have one or more StoreFile instances,which are lightweight wrappers around the actual storage file called HFile.A store also has a MemStore,and the HRegionServer a shared HLog instance.

简单的理解就是:
1.HRegion 实际上是一个Region的实例(Region是抽象概念,HRegion是实例化对象名词)
2.HRegion 中包含多个Store实例,每一个Store对应的是一个HColumnFamily.
3.每一个StoreFile包含一个MemStore和多个StoreFile,而StoreFile实际上是HFile的一个轻量级的包装
4.Store hosts a MemStore and 0 or more StoreFiles(HFiles).A Store corresponds to a column family for a table for a given region.
5.StoreFiles: are where your data lives.
6.HFile Format:is based on the SSTable file described in the BigTable paper and on Hadoop’s TFile.

0 0