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

gautham picture gautham · Feb 25, 2015 · Viewed 23.6k times · Source

I have multiple tables on my Hbase shell that I would like to copy onto my file system. Some tables exceed 100gb. However, I only have 55gb free space left in my local file system. Therefore, I would like to know the size of my hbase tables so that I could export only the small sized tables. Any suggestions are appreciated.

Thanks, gautham

Answer

Alexander picture Alexander · Feb 26, 2015

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.