How can I get the size of a particular HBase table from HBase shell?
Asked
Active
Viewed 5,065 times
2
-
1Possible duplicate of [Is there any command that I can learn the size of a table at Hbase?](http://stackoverflow.com/questions/15890223/is-there-any-command-that-i-can-learn-the-size-of-a-table-at-hbase) – Nanda Feb 20 '17 at 10:17
2 Answers
1
Data present on the hdfs in directory
hdfs dfs -ls /hbase/data/
Size of table on the HDFS
hdfs dfs -du -h /hbase/data/<UserName>
For Finding Number of Rows in a particular table
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'

ankursingh1000
- 1,349
- 1
- 15
- 21