当前位置: 代码网 > it编程>编程语言>Java > 查看Hive表的描述信息,包括在HDFS上的Location信息

查看Hive表的描述信息,包括在HDFS上的Location信息

2024年08月06日 Java 我要评论
DESCRIBE FORMATTED 表名;

no rows affected (0.820 seconds)
0: jdbc:hive2://ip:10000> describe formatted demo;
info  : compiling command(queryid=root_20240601141007_207d8432-0f88-4690-96e1-e9c9ee766b31): describe formatted demo
info  : semantic analysis completed (retrial = false)
info  : returning hive schema: schema(fieldschemas:[fieldschema(name:col_name, type:string, comment:from deserializer), fieldschema(name:data_type, type:string, comment:from deserializer), fieldschema(name:comment, type:string, comment:from deserializer)], properties:null)
info  : completed compiling command(queryid=root_20240601141007_207d8432-0f88-4690-96e1-e9c9ee766b31); time taken: 0.106 seconds
info  : executing command(queryid=root_20240601141007_207d8432-0f88-4690-96e1-e9c9ee766b31): describe formatted demo
info  : starting task [stage-0:ddl] in serial mode
info  : completed executing command(queryid=root_20240601141007_207d8432-0f88-4690-96e1-e9c9ee766b31); time taken: 0.25 seconds
info  : ok
+-------------------------------+----------------------------------------------------+----------------------------------------------------+
|           col_name            |                     data_type                      |                      comment                       |
+-------------------------------+----------------------------------------------------+----------------------------------------------------+
| # col_name                    | data_type                                          | comment                                            |
| id                            | string                                             | ??                                                 |
| name                          | string                                             | ????                                               |

|                               | null                                               | null                                               |
| # detailed table information  | null                                               | null                                               |
| database:                     | default                                            | null                                               |
| ownertype:                    | user                                               | null                                               |
| owner:                        | root                                               | null                                               |
| createtime:                   | sat jun 01 14:08:32 cst 2024                       | null                                               |
| lastaccesstime:               | unknown                                            | null                                               |
| retention:                    | 0                                                  | null                                               |
| location:                     | hdfs://ip:9000/hive/warehouse/warn        | null                                               |
| table type:                   | managed_table                                      | null                                               |
| table parameters:             | null                                               | null                                               |
|                               | column_stats_accurate                              | {\"basic_stats\":\"true\",\"column_stats\":{}} |
|                               | bucketing_version                                  | 2                                                  |
|                               | comment                                            | ???                                                |
|                               | numfiles                                           | 0                                                  |
|                               | numrows                                            | 0                                                  |
|                               | rawdatasize                                        | 0                                                  |
|                               | totalsize                                          | 0                                                  |
|                               | transient_lastddltime                              | 1717222112                                         |
|                               | null                                               | null                                               |
| # storage information         | null                                               | null                                               |
| serde library:                | org.apache.hadoop.hive.serde2.lazy.lazysimpleserde | null                                               |
| inputformat:                  | org.apache.hadoop.mapred.textinputformat           | null                                               |
| outputformat:                 | org.apache.hadoop.hive.ql.io.hiveignorekeytextoutputformat | null                                               |
| compressed:                   | no                                                 | null                                               |
| num buckets:                  | -1                                                 | null                                               |
| bucket columns:               | []                                                 | null                                               |
| sort columns:                 | []                                                 | null                                               |
| storage desc params:          | null                                               | null                                               |
|                               | field.delim                                        | \t                                                 |
|                               | serialization.format                               | \t                                                 |
+-------------------------------+----------------------------------------------------+----------------------------------------------------+
45 rows selected (0.417 seconds)

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com