Please help me out how get metadata of hive tables, columns, views, constraint keys and comment columns.
相关问题
- Spark on Yarn Container Failure
- enableHiveSupport throws error in java spark code
- spark select and add columns with alias
- Unable to generate jar file for Hadoop
-
hive: cast array
> into map
相关文章
- 在hive sql里怎么把"2020-10-26T08:41:19.000Z"这个字符串转换成年月日
- Java写文件至HDFS失败
- mapreduce count example
- SQL query Frequency Distribution matrix for produc
- Cloudera 5.6: Parquet does not support date. See H
- Could you give me any clue Why 'Cannot call me
- converting to timestamp with time zone failed on A
- Hive error: parseexception missing EOF
Use Hcatlog.
Maven dependency:
Sample code:
Check available methods of HCatTable.
It can be viewed by this simple query
describe formatted table_name
If you access to hive metastore(rdbm systems like mysql, postgresql etc), you will be able to access complete information. Contact your cluster admin who has configured the hive metastore if you do not have the access.
if you have Hue available you can go to Metastore Tables from the top menu Data Browsers. There you can find metadata for all schemas available for you. From Hive you can try:
USE DB_NAME;
DESCRIBE FORMATTED TABLE_NAME;
or
DESCRIBE EXTENDED TABLE_NAME;