How do I determine the size of my HBase Tables ?. Is there any command to do so? How do I determine the size of my HBase Tables ?. Is there any command to do so? hadoop hadoop

How do I determine the size of my HBase Tables ?. Is there any command to do so?


try hdfs dfs -du -h /hbase/data/default/ (or /hbase/ depending on hbase version you use)

This will show how much space is used by files of your tables.

Hope that will help.


for 0.98+ try hadoop fs -du -s -h $hbase_root_dir/data/data/$schema_name/ (or /hbase/ for 0.94)

You can find hbase_root_dir from hbase-site.xml file of your cluster.The above command will provide you summary of disk used by each table.


use du

Usage: hdfs dfs -du [-s] [-h] URI [URI …]

Displays sizes of files and directories contained in the given directory or the length of a file in case its just a file.

Options:

The -s option will result in an aggregate summary of file lengths being displayed, rather than the individual files.

The -h option will format file sizes in a "human-readable" fashion (e.g 64.0m instead of 67108864)

Example:

hdfs dfs -du -h /hbase/data/default

output for me:

1.2 M    /hbase/data/default/kylin_metadata14.0 K   /hbase/data/default/kylin_metadata_acl636      /hbase/data/default/kylin_metadata_user5.6 K    /hbase/data/default/test