Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Impala command to know DB table size

Tags:

hadoop

impala

Is there any way that we can check the DB table size and other properties ? I tried COMPUTE STATS but it gives the details of table except the size. any link to find information and other details are much appreciated.

like image 877
Shantesh Avatar asked Jan 16 '18 05:01

Shantesh


People also ask

How do I tell what size my Impala table is?

Impala performs some optimizations using this metadata on its own, and other optimizations by using a combination of table and column statistics. To check that table statistics are available for a table, and see the details of those statistics, use the statement SHOW TABLE STATS table_name .

How do you check an Impala table?

Open impala Query editor, select the context as my_db and type the show tables statement in it and click on the execute button as shown in the following screenshot. After executing the query, if you scroll down and select the Results tab, you can see the list of the tables as shown below.

How do I find the size of a Hive table?

Hive stores data in the table as hdfs file, you can simply use hdfs dfs -du command to identify size of folder and that would be your table size.

Which command in Impala retrieves metadata for all tables?

The describe command of Impala gives the metadata of a table. It contains the information like columns and their data types. The describe command has desc as a short cut. The drop command is used to remove a construct from Impala, where a construct can be a table, a view, or a database function.


1 Answers

show table stats tablename 

Works as I wanted, Thanks alot

like image 61
Shantesh Avatar answered Nov 15 '22 09:11

Shantesh