Hive執行sql文件

方法1: hive -f sql文件sql

  t.sql文件內容:shell

select *from userinfo limit 10;

  執行命令spa

hive -f t.sql

 

方法2: 進入hive shell, 執行source命令code

進入hive 終端blog

$ hive
hive>

使用source命令執行it

hive>source t.sql
相關文章
相關標籤/搜索