1.顯示分區 show partitions tables; 2.SHELL里導出文件顯示欄位 set hive.cli.print.header ...
1.顯示分區
show partitions tables;
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;