Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

impala tables to show table size/ user who created the table within a whole database

avatar
New Member

hi all

 

I'm looking to create a table to show all table names and information within a database as im having capacity issues 

 

something simple like 

 

username,size,tablename,last updated date 

 

hoping this is an easy ask but i had no luck so far 

1 REPLY 1

avatar
Expert Contributor

 

Hi @dave22 

 

The table data is stored in a HDFS location, so you may consume information out of it

# hdfs dfs -du -s -h /path/to/database/

--> From here you can pick the owner of the path, which should be the username

--> sub folders/files are the tables within the database

--> The modification date can be used as the last updated date 

--> size of the table can be picked using below command

# hdfs dfs -du -s -h/path/to/database/

Let us know if this helps