- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
impala tables to show table size/ user who created the table within a whole database
- Labels:
-
Apache Impala
Created 05-09-2022 03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 02-29-2024 07:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
