2

How can I get the size of a particular HBase table from HBase shell?

ankit tyagi
  • 778
  • 2
  • 16
  • 27
  • 1
    Possible 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 Answers2

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
-1

Just look into the HBase Documentation

count 'tablename', INTERVAL => 100000
S.K
  • 21
  • 4