Support Questions

Find answers, ask questions, and share your expertise

Does Hive supports information schema?

avatar
New Contributor

I want to query all tables/columns metadata in hive. The way this is done in other databases like mssql, postgresql is to query information_schema views, but i don't see anything like that in hive. Can someone confirm is information_schema doesn't exists in hive. If it doesn't exists what would be a way to query metadata ??

Tried querying information_schema, but didn't get anything.


2 REPLIES 2

avatar
Community Manager

@kaif, Welcome to our community! To help you get the best possible answer, I have tagged our Hive experts  @smruti @ggangadharan who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Master Collaborator

@kaif Hive does have information_schema database, that you can access from beeline or Hue. You also have SYS db that fetches different information from the RDBMS that is used to store hive metadata. 

Here's the DDLs of those tables, and this will also give you some idea on what data they store.