1.显示分区

show partitions tables;

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

2.SHELL里导出文件显示字段

set hive.cli.print.header=true;

3.查看HIVE版本

shell中看jar包的版本,版本就是HIVE的版本

locate */hive/lib/hive*jar

4.显示所有库

show databases;

5.显示所有表格

show tables;

6.显示表字段

desc table_name;

7.显示所有函数

show functions;

8.复制表结构

create table new_table_name like old_table_name;

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄