方法1: hive -f sql文件

  t.sql文件内容:

select *from userinfo limit 10;

  执行命令

hive -f t.sql

 

方法2: 进入hive shell, 执行source命令

进入hive 终端

$ hive
hive>

使用source命令执行

hive>source t.sql

 

 

 

  

  

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-10-29
  • 2021-07-25
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-10-08
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案