3.2.1 查询集群状态信息(status命令)

status命令用于查看当前HBase集群的状态信息。

语法:


    status 'simple'
status 'summary'
status 'detailed'
status 'replication'
status 'replication', 'source'
status 'replication', 'sink'

范例一:查看集群最简洁的状态信息


    hbase(main):001:0> status 'simple'
active master:  myhbase:16000 1631620932096
0 backup masters
1 live servers
myhbase:16020 1631620936415
requestsPerSecond=0.0, numberOfOnlineRegions=4, usedHeapMB=55, maxHeapMB=1161, numberOfStores=4, numberOfStorefiles=4, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=228, writeRequestsCount=14, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=15, currentCompactedKVs=15, compactionProgressPct=1.0, coprocessors=[MultiRowMutationEndpoint]
0 dead servers
Aggregate load: 0, regions: 4

范例二:查看集群详细的状态信息


    hbase(main):001:0> status 'detailed'
version 1.3.2
0 regionsInTransition
active master:  myhbase:16000 1631620932096
0 backup masters
master coprocessors: []
1 live servers
myhbase:16020 1631620936415
requestsPerSecond=0.0, numberOfOnlineRegions=4, usedHeapMB=56, maxHeapMB=1161, numberOfStores=4, numberOfStorefiles=4, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=228, writeRequestsCount=14, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=15, currentCompactedKVs=15, compactionProgressPct=1.0, coprocessors=[MultiRowMutationEndpoint]"hbase:meta,,1" numberOfStores=1, numberOfStorefiles=2, storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=1631632379721, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=219, writeRequestsCount=8, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=15, currentCompactedKVs=15, compactionProgressPct=1.0, completeSequenceId=27, dataLocality=0.0
"hbase:namespace,,1631620945952.edd622b3427d9929e20cdebca74260a1."
numberOfStores=1, numberOfStorefiles=1, storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=6, writeRequestsCount=2, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=7, dataLocality=0.0
"student,,1631631463862.1cb51dc0ef8dfd46f6664b36297ebb30."
numberOfStores=1, numberOfStorefiles=0, storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=0, writeRequestsCount=0, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1, dataLocality=0.0"userinfo,,1631635025043.e109b316b379185201a4483741b5748e."  numberOfStores=1, numberOfStorefiles=1, storefileUncompressedSizeMB=0, lastMajorCompactionTimestamp=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=3, writeRequestsCount=4, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=9, dataLocality=0.0
0 dead servers