清屏
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>