Reputation: 31
Does hive have a data dictionary? I am trying to fetch the column names of tables in hive. Similar to oracle query other than describe command:
SELECT COLUMN_NAME,DATA_TYPE FROM USER_TAB_COLUMNS
WHERE TABLE_NAME = ? ORDER BY COLUMN_ID;
Upvotes: 1
Views: 6468
Reputation: 900
Hive works in three configurations:
Upvotes: 0
Reputation: 294407
Hive uses an external relational database as its metastore. You can query the configured metastore directly, using the metastore API (eg. MySQL). A higher level component is HCatalog, which offers an API to access and manipulate the metastore.
Upvotes: 1