Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 894
gautham Avatar asked Feb 25 '15 20:02

gautham


People also ask

What is the command is used to list of tables available in HBase?

Hey, list is the command that is used to list all the tables in HBase.

What are the data manipulation commands of HBase?

HBase provide many data manipulation shell commands that you can use on the interactive shell to manipulate the data. The Commonly used HBase data manipulation shell commands are: Count, Put, Get, Delete, Delete all, Truncate, Scan.


1 Answers

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.

like image 85
Alexander Avatar answered Oct 20 '22 01:10

Alexander