HBase 일반 Shell 명령 - status, version, whoami
General HBase shell commands
여기서는 HBase의 일반 명령에 대해서 소개한다.
status
cluster 상태를 표시한다. 추가 옵션("summary"
, "simple"
, "detailed"
)을 통해 상세정보를 확인할 있다. 디폴트는 "summary"
이다.
status 명령으로 클러스터의 상태를 확인할 수 있다.
옵션 | 설명 |
---|---|
simple | 서버 정보 |
summary | 서버 개수, 로드 부하 |
detailed | 서버 정보, 메타 정보 |
replication | 소스, 싱크 정보 |
status
hbase(main):001:0> status
1 servers, 0 dead, 2.0000 average load
status 'simple'
hbase(main):002:0> status 'simple'
1 live servers
532f4d895a98:40371 1686636094968
requestsPerSecond=0.0, numberOfOnlineRegions=2, usedHeapMB=19, maxHeapMB=966, numberOfStores=2, numberOfStorefiles=2, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=42, writeRequestsCount=5, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, coprocessors=[]
0 dead servers
Aggregate load: 0, regions: 2
status 'summary'
hbase(main):003:0> status 'summary'
1 servers, 0 dead, 2.0000 average load
status 'detailed'
hbase(main):004:0> status 'detailed'
version 2.0.0-SNAPSHOT
0 regionsInTransition
master coprocessors: []
1 live servers
532f4d895a98:40371 1686636094968
requestsPerSecond=0.0, numberOfOnlineRegions=2, usedHeapMB=21, maxHeapMB=966, numberOfStores=2, numberOfStorefiles=2, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=42, writeRequestsCount=5, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, coprocessors=[]
"hbase:meta,,1"
numberOfStores=1, numberOfStorefiles=1, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=36, writeRequestsCount=3, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=10
"hbase:namespace,,1686636105191.93358ca1f9bf1816320d88c48e39a3b4."
numberOfStores=1, numberOfStorefiles=1, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=6, writeRequestsCount=2, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=8
0 dead servers
version
설치된 HBase의 버전정보를 확인한다.
version
hbase(main):001:0> version
2.0.0-SNAPSHOT, r31ed817447b4c3edef2019d1580aa3ede83a82da, Fri Sep 26 02:07:26 UTC 2014
whoami
현재 hbase의 사용자를 확인한다.
whoami
hbase(main):008:0> whoami
root (auth:SIMPLE)
groups: root
최종 수정 : 2023-06-16