2017-02-16 154 views
0

如何從HBase shell獲取特定HBase表的大小?HBase shell命令獲取特定表的大小

+1

的[有沒有辦法,我可以學到在HBase的表的大小任意命令?(可能的複製http://stackoverflow.com/questions/15890223/is-there-any-command-that-i-可以學習-的大小對的一表-AT-HBase的) – Nanda

回答

0

看看到HBase的文檔

count 'tablename', INTERVAL => 100000 
0

數據出現在HDFS目錄

hdfs dfs -ls /hbase/data/ 

表的大小對HDFS

hdfs dfs -du -h /hbase/data/<UserName> 

用於查找行數一個特定的表格

hbase org.apache.hadoop.hbase.mapreduce.RowCounter 'tableName' 

counter can be verified from 
org.apache.hadoop.hbase.mapreduce.RowCounter$RowCounterMapper$Counters 

OR counter from the Hbase shell 
hbase(main):001:0> count 'tablename'