hbase region, store, storefile和列簇,的关系
2013-01-14 14:25
148 查看
转自:http://zhb-mccoy.iteye.com/blog/1543492
The HRegionServer opens the region and creates a corresponding HRegion object. When
the HRegion is opened it 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 in-stance。
hbase table中每个列簇都对应着region中的一个store,在hdfs系统中则对应着一个目录,如果列簇中尚无数据,怎该目录为空,也就是该store下还没有storefile。
1.house_hire_analysis 表中列簇total下无数据,另一张表fangyuan下有数据:
2.查看hdfs region下的内容
3. hbase console 如图:
4.put一条记录到house_hire_analysis中,并flush,flush将改动从memstore刷新到磁盘
5. hbase cosole storefile已经增加
6.新flush的kv根据策略会分别存到不同的storefiles中(最后compaction 会将这些小文件合并)
查看图片附件
The HRegionServer opens the region and creates a corresponding HRegion object. When
the HRegion is opened it 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 in-stance。
hbase table中每个列簇都对应着region中的一个store,在hdfs系统中则对应着一个目录,如果列簇中尚无数据,怎该目录为空,也就是该store下还没有storefile。
1.house_hire_analysis 表中列簇total下无数据,另一张表fangyuan下有数据:
2.查看hdfs region下的内容
3. hbase console 如图:
4.put一条记录到house_hire_analysis中,并flush,flush将改动从memstore刷新到磁盘
5. hbase cosole storefile已经增加
6.新flush的kv根据策略会分别存到不同的storefiles中(最后compaction 会将这些小文件合并)
查看图片附件
相关文章推荐
- Hbase 学习笔记5----hbase region, store, storefile和列簇的关系
- HBase中Region, store, storefile和列簇的关系
- HBase中Region,Store,StoreFile,ColumnFamily的关系
- HBase中Region,Store,StoreFile,ColumnFamily的关系
- Hbase的读写流程、快照管理以及RegionServer,Region,StoreFile,Hfile,ColumFamily的关系
- 使用lttng trace ceph filestore的性能
- HFile: A Block-Indexed File Format to Store Sorted Key-Value Pairs
- PHP-CGI 进程 CPU 100% 与 file_get_contents 函数的关系
- control_file_record_keep_time设置与RMAN保留策略的关系
- HBase的Hmaster、HRegionserver、Region、Hstore、memstore、HFile的关系
- 9 hbase源码系列(九)StoreFile存储格式
- file-max与ulimit的关系与差别
- 探索文件描述符(fd)与FILE结构体之间的关系
- HBase源码系列(六)HBase存储结构与StoreFile存储格式
- BITMAP,BITMAPINFOHEADER,PBITMAPINFO,HBITMAP,BITMAPFILEHEADER之间的关系
- HBase Region操作实战分析之Store Compaction
- Error:dojo.data.ItemFileWriteStore:Invalid item argument
- 用FTPClient上传文件,执行this.ftpClient.storeFile(fileName, inStream)报错
- read 系统调用剖析--file_operations中read/write函数与内核系统调用的关系
- PHP-CGI 进程 CPU 100% 与 file_get_contents 函数的关系