hbase在zookeeper中的数据结构
查看hbase在zookeeper中的数据结构(这一个小的知识点很多人都会忽略)几个比较主要的下面有解释replication, meta-region-server, rs, 节点数 splitWAL, 日志文件backup-masters, table-lock, flush-table-proc, region-in-transition, online-sna
查看hbase在zookeeper中的数据结构(这一个小的知识点很多人都会忽略)
[hadoop@master bin]$ zkCli.sh -server master:2181
ls /hbase
几个比较主要的下面有解释
replication,
meta-region-server,
rs, 节点数
splitWAL, 日志文件
backup-masters,
table-lock,
flush-table-proc,
region-in-transition,
online-snapshot,
switch,
master,
running,
recovering-regions,
draining,
namespace, 存放名字空间
hbaseid,
table, 存放表
[zk: master:2181(CONNECTED) 0] ls /hbase
[replication, meta-region-server, rs, splitWAL, backup-masters, table-lock, flush-table-proc, region-in-transition, online-snapshot, switch, master, running, recovering-regions, draining, namespace, hbaseid, table]
/hbase/replication
[zk: master:2181(CONNECTED) 2] ls /hbase/replication
[peers, rs]
[zk: master:2181(CONNECTED) 3] get /hbase/replication
cZxid = 0x100000031
ctime = Sun Jun 24 20:11:23 CST 2018
mZxid = 0x100000031
mtime = Sun Jun 24 20:11:23 CST 2018
pZxid = 0x100000035
cversion = 2
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 2
/hbase/meta-region-server
[zk: master:2181(CONNECTED) 4] ls /hbase/meta-region-server
[]
[zk: master:2181(CONNECTED) 5] get /hbase/meta-region-server
�regionserver:16020T��d
�7 PBUF
slave1�}�����,
cZxid = 0xf0000002c
ctime = Thu Jul 05 22:27:57 CST 2018
mZxid = 0xf0000002c
mtime = Thu Jul 05 22:27:57 CST 2018
pZxid = 0xf0000002c
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 59
numChildren = 0
/hbase/rs
[zk: master:2181(CONNECTED) 6] ls /hbase/rs
[slave2,16020,1530800856540, master,16020,1530800863510, slave1,16020,1530800858694]
[zk: master:2181(CONNECTED) 7] get /hbase/rs
cZxid = 0x100000004
ctime = Sun Jun 24 20:11:12 CST 2018
mZxid = 0x100000004
mtime = Sun Jun 24 20:11:12 CST 2018
pZxid = 0xf00000041
cversion = 57
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 3
/hbase/splitWAL
[zk: master:2181(CONNECTED) 8] ls /hbase/splitWAL
[]
[zk: master:2181(CONNECTED) 9] get /hbase/splitWAL
cZxid = 0x100000007
ctime = Sun Jun 24 20:11:12 CST 2018
mZxid = 0x100000007
mtime = Sun Jun 24 20:11:12 CST 2018
pZxid = 0xf00000050
cversion = 16
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 0
/hbase/backup-masters
[zk: master:2181(CONNECTED) 10] ls /hbase/backup-masters
[]
[zk: master:2181(CONNECTED) 11] get /hbase/backup-masters
cZxid = 0x100000008
ctime = Sun Jun 24 20:11:12 CST 2018
mZxid = 0x100000008
mtime = Sun Jun 24 20:11:12 CST 2018
pZxid = 0xf00000011
cversion = 20
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 0
/hbase/table-lock
[zk: master:2181(CONNECTED) 12] ls /hbase/table-lock
[Score, hbase:namespace, test, t1, t2]
[zk: master:2181(CONNECTED) 13] get /hbase/table-lock
cZxid = 0x100000009
ctime = Sun Jun 24 20:11:12 CST 2018
mZxid = 0x100000009
mtime = Sun Jun 24 20:11:12 CST 2018
pZxid = 0xb00000064
cversion = 7
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 5
/hbase/flush-table-proc
[zk: master:2181(CONNECTED) 14] ls /hbase/flush-table-proc
[abort, acquired, reached]
[zk: master:2181(CONNECTED) 15] get /hbase/flush-table-proc
cZxid = 0x100000019
ctime = Sun Jun 24 20:11:22 CST 2018
mZxid = 0x100000019
mtime = Sun Jun 24 20:11:22 CST 2018
pZxid = 0x100000020
cversion = 3
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 3
/hbase/region-in-transition
[zk: master:2181(CONNECTED) 16] ls /hbase/region-in-transition
[]
[zk: master:2181(CONNECTED) 17] get /hbase/region-in-transition
cZxid = 0x100000003
ctime = Sun Jun 24 20:11:12 CST 2018
mZxid = 0x100000003
mtime = Sun Jun 24 20:11:12 CST 2018
pZxid = 0xf00000060
cversion = 102
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 0
/hbase/online-snapshot
[zk: master:2181(CONNECTED) 18] ls /hbase/online-snapshot
[abort, acquired, reached]
[zk: master:2181(CONNECTED) 19] get /hbase/online-snapshot
cZxid = 0x100000022
ctime = Sun Jun 24 20:11:22 CST 2018
mZxid = 0x100000022
mtime = Sun Jun 24 20:11:22 CST 2018
pZxid = 0x100000027
cversion = 3
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 3
/hbase/master
[zk: master:2181(CONNECTED) 20] ls /hbase/master
[]
[zk: master:2181(CONNECTED) 21] get /hbase/master
�master:16000�2q
�N��PBUF
master�}�����,�}
cZxid = 0xf00000010
ctime = Thu Jul 05 22:27:44 CST 2018
mZxid = 0xf00000010
mtime = Thu Jul 05 22:27:44 CST 2018
pZxid = 0xf00000010
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x646ad717310000
dataLength = 54
numChildren = 0
/hbase/namespace
[zk: master:2181(CONNECTED) 22] ls /hbase/namespace
[default, hbase]
[zk: master:2181(CONNECTED) 23] get /hbase/namespace
cZxid = 0x10000004c
ctime = Sun Jun 24 20:11:35 CST 2018
mZxid = 0x10000004c
mtime = Sun Jun 24 20:11:35 CST 2018
pZxid = 0x10000004f
cversion = 2
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 2
/hbase/table
[zk: master:2181(CONNECTED) 24] ls /hbase/table
[hbase:meta, Score, hbase:namespace, test, t1, t2]
[zk: master:2181(CONNECTED) 25] get /hbase/table
cZxid = 0x100000006
ctime = Sun Jun 24 20:11:12 CST 2018
mZxid = 0x100000006
mtime = Sun Jun 24 20:11:12 CST 2018
pZxid = 0xb00000066
cversion = 8
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 0
numChildren = 6
更多推荐
所有评论(0)