hbase meta表数据存储

hbase meta表数据存储

1.meta表存储了在系统上的一系列的region信息。以及meta表的信息存储在zookeeper上。

2.meta表结构如下(默认列族为info) :

Key:
Region key of the format ([table表名],[region start key起始键],[region id])

Values:
序列化的regioninfo实例
info:regioninfo (serialized HRegionInfo instance for this region)

包含此region的regionserver
info:server (server:port of the RegionServer containing this region)

包含此region的regionserver的进程开始时间
info:serverstartcode (start-time of the RegionServer process containing this region)

3.meta表实例数据展示:

hbase(main):148:0> scan 'hbase:meta'
ROW  COLUMN+CELL 
 hbase:namespace,,1512106581988.18a0600b197d7313 column=info:regioninfo, timestamp=1512106686993, value={ENCODED => 18a0600b197d73133f8cdeeca1d9bbe2, NAME => 'hbase:namespace,,1512106581988
 3f8cdeeca1d9bbe2.   .18a0600b197d73133f8cdeeca1d9bbe2.', STARTKEY => '', ENDKEY => ''}  
 hbase:namespace,,1512106581988.18a0600b197d7313 column=info:seqnumDuringOpen, timestamp=1512106686993, value=\x00\x00\x00\x00\x00\x00\x00\x0B   
 3f8cdeeca1d9bbe2.   
 hbase:namespace,,1512106581988.18a0600b197d7313 column=info:server, timestamp=1512106686993, value=slave-1:16020
 3f8cdeeca1d9bbe2.   
 hbase:namespace,,1512106581988.18a0600b197d7313 column=info:serverstartcode, timestamp=1512106686993, value=1512106679061   
 3f8cdeeca1d9bbe2.
    原文作者:奈文摩尔ST
    原文地址: https://www.jianshu.com/p/e024dbfb02e5
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞