table version
select * from version;
+--------+----------------+----------------------------+
| VER_ID | SCHEMA_VERSION | VERSION_COMMENT |
+--------+----------------+----------------------------+
| 1 | 2.1.1 | Hive release version 2.1.1 |
+--------+----------------+----------------------------+
table cdh_version
select * from cdh_version;
+--------+----------------+------------------------------------------+
| VER_ID | SCHEMA_VERSION | VERSION_COMMENT |
+--------+----------------+------------------------------------------+
| 1 | 2.1.1-cdh6.2.0 | Hive release version 2.1.1 for CDH 6.2.0 |
+--------+----------------+------------------------------------------+
table DBS
数据库的相关信息
select * from DBS;
+-------+-----------------------+-----------------------------------------------------------------------+------------------------+------------+------------+-------------+
| DB_ID | DESC | DB_LOCATION_URI | NAME | OWNER_NAME | OWNER_TYPE | CREATE_TIME |
+-------+-----------------------+-----------------------------------------------------------------------+------------------------+------------+------------+-------------+
| 1 | Default Hive database | hdfs://eslinknameserver/user/hive/warehouse | default | public | ROLE | 1571974672 |
| 3448 | NULL | hdfs://eslinknameserver/user/hive/warehouse/once_a_month_ods.db | once_a_month_ods | yarn | USER | 1572917480 |
| 3449 | NULL | hdfs://eslinknameserver/user/hive/warehouse/once_a_month_dwd.db | once_a_month_dwd | yarn | USER | 1572917481 |
| 3450 | NULL | hdfs://eslinknameserver/user/hive/warehouse/once_a_month_dws.db | once_a_month_dws | yarn | USER | 1572917481 |
| 3451 | NULL | hdfs://eslinknameserver/user/hive/warehouse/once_a_month_ads.db | once_a_month_ads | yarn | USER | 1572917481 |
| 3478 | NULL | hdfs://eslinknameserver/user/hive/warehouse/demo_ods.db | demo_ods | yarn | USER | 1572923939 |
| 3479 | NULL | hdfs://eslinknameserver/user/hive/warehouse/demo_dwd.db | demo_dwd | yarn | USER | 1572923939 |
| 3480 | NULL | hdfs://eslinknameserver/user/hive/warehouse/demo_dws.db | demo_dws | yarn | USER | 1572923940 |
| 3481 | NULL | hdfs://eslinknameserver/user/hive/warehouse/demo_ads.db | demo_ads | yarn | USER | 1572923940 |
| 3775 | NULL | hdfs://eslinknameserver/user/hive/warehouse/wstest_project_mytest.db | wstest_project_mytest | yarn | USER | 1573008915 |
| 4159 | NULL | hdfs://eslinknameserver/user/hive/warehouse/test_01_ods.db | test_01_ods | yarn | USER | 1573123903 |
| 4160 | NULL | hdfs://eslinknameserver/user/hive/warehouse/test_01_dwd.db | test_01_dwd | yarn | USER | 1573123904 |
| 4161 | NULL | hdfs://eslinknameserver/user/hive/warehouse/test_01_dws.db | test_01_dws | yarn | USER | 1573123904 |
| 4162 | NULL | hdfs://eslinknameserver/user/hive/warehouse/test_01_ads.db | test_01_ads | yarn | USER | 1573123905 |
| 4407 | NULL | hdfs://eslinknameserver/user/hive/warehouse/test_001_ods.db | test_001_ods | yarn | USER | 1573197048 |
| 4408 | NULL | hdfs://eslinknameserver/user/hive/warehouse/test_001_dwd.db | test_001_dwd | yarn | USER | 1573197048 |
| 4409 | NULL | hdfs://eslinknameserver/user/hive/warehouse/test_001_dws.db | test_001_dws | yarn | USER | 1573197048
table database_params
建数据库是使用参数,传的参数的信息
CREATE (DATABASE|SCHEMA) [IF NOT EXISTS] database_name
[COMMENT database_comment]
[LOCATION hdfs_path]
[WITH DBPROPERTIES (property_name=property_value, ...)];
select * from database_params;
Empty set (0.00 sec)
table TBLS
mysql> select * from tbls;
+--------+-------------+-------+------------------+-------+------------+-----------+-------+---------------------------+----------------+--------------------+--------------------+
| TBL_ID | CREATE_TIME | DB_ID | LAST_ACCESS_TIME | OWNER | OWNER_TYPE | RETENTION | SD_ID | TBL_NAME | TBL_TYPE | VIEW_EXPANDED_TEXT | VIEW_ORIGINAL_TEXT |
+--------+-------------+-------+------------------+-------+------------+-----------+-------+---------------------------+----------------+--------------------+--------------------+
| 10618 | 1574933483 | 10415 | 0 | yarn | USER | 0 | 34976 | biz_paylog_ods | EXTERNAL_TABLE | NULL | NULL |
| 10619 | 1574933538 | 10415 | 0 | yarn | USER | 0 | 34977 | biz_channeltradeorder_ods | EXTERNAL_TABLE | NULL | NULL |
| 10620 | 1574933573 | 10415 | 0 | yarn | USER | 0 | 34978 | biz_user_ods | EXTERNAL_TABLE | NULL | NULL |
| 10660 | 1574940972 | 10416 | 0 | yarn | USER | 0 | 37071 | biz_user_dwd | MANAGED_TABLE | NULL | NULL |
| 10843 | 1574994627 | 10416 | 0 | yarn | USER | 0 | 37612 | biz_paylog_dwd | MANAGED_TABLE | NULL | NULL |
| 10845 | 1574994849 | 10416 | 0 | yarn | USER | 0 | 37614 | biz_channeltradeorder_dwd | MANAGED_TABLE | NULL | NULL |
| 10877 | 1575003698 | 10418 | 0 | yarn | USER | 0 | 37706 | daily_increased_ads | MANAGED_TABLE | NULL | NULL |
| 10887 | 1575005144 | 10418 | 0 | yarn | USER | 0 | 37726 | monthly_increased_ads | MANAGED_TABLE | NULL | NULL |
| 10888 | 1575005211 | 10418 | 0 | yarn | USER | 0 | 37727 | weekly_increased_ads | MANAGED_TABLE | NULL | NULL |
| 10951 | 1575022845 | 10416 | 0 | yarn | USER | 0 | 37908 | biz_paylog_dwd_test | MANAGED_TABLE | NULL | NULL |
| 10957 | 1575024283 | 10415 | 0 | yarn | USER | 0 | 37924 | acct_pay_record_ods_test | EXTERNAL_TABLE | NULL | NULL |
+--------+-------------+-------+------------------+-------+------------+-----------+-------+---------------------------+----------------+--------------------+--------------------+