HBase Read / Write Data Process
2019-11-18 17:18:04 13 举报
HBase 数据读写过程
作者其他创作
大纲/内容
RowKey2-Region1-RegionServer1
1. 定位 RowKey 所在的 RegionServer-Region 信息
Region
RowKey4-Region3-RegionServer2
KeyValueHeap
Cell
Active Segment
RegionServer(User Region)
原始 Puts
SegmentScanner
RegionServer(hbase:meta Region)
Zookeeper / Meta RegionServer
HBase Client
HFile
RowKey3-Region2-RegionServer1
WAL
Results
RegionAction2
Result
Batch Put Porcess
Data
HBase Client Region Cache(inner)
HFile
create log
RowKey1-Region1-RegionServer1
StoreFileScanner
Logging region cell operation from region to wal
缓存 Region 路由信息
StoreScanner
Immutable Segmemt
KeyValueScanner
Put Handler
Puts 打包分组(client)
RegionScanner
MemStore
HBase Read Data Porcess
Memstore CellSet
Recovering cell operation form wal to memstore
Flush
Active Segmemt
RegionServer
RegionAction1
RegionServerUser Region
Relationship of WAL and Memstore
Create
scan
Region1
Zookeeper Client(inner)
In-menory Flush
定位 RowKey 所在的 RegionServer-Region 信息
串行 Region 写入
Single Put Porcess
Memstore(RAM)
Scan
Next
Put Hadler
Results Cache
Zookeeper
按照 RegionServer 分组
2. 进行 Put 操作(RPC)
B. 向 Region 中的 Memstore 写入数据
3. 访问目标 RegionServer-Region,进行数据写入
Region2
Region Store
Minor Compaction
HBase Write Data Process
Application
按照 Region 分组
A. 向 WAL 写入日志
Block Cache
Major Compaction
Store - Column Family
Immutable Segment
HFiles
Put
Region 分发
Memstore
HFile(Disk)
Flush/Compaction Process
2. 获取 Data RowKey 所在的 RegionServer-Region 地址
0 条评论
下一页