清屏
Ctrl+L 或者 !clear
查看數據倉庫中的表
show tables;
查看數據倉庫中內置的函數
show functions;
查看錶結構
desc tablename
查看HDFS上的文件
dfs -ls 目錄
執行Linux的命令
!命令
執行HQL語句
SELECT * FROM tablename
執行SQL的腳本
source sql文件
Hive 靜默模式
hive -S
Hive 直接執行SQL
hive -e <quoted-query-string>
Hive 執行文件中的SQL
hive -f <filename>