将同一hive会话中的多个查询输出导出到shell脚本?


机器设备维修
2025-03-03 05:12:42 (3天前)


有没有办法将hive CLI中多个hive查询的输出导出到shell脚本?

目前,我有shell脚本,其中有多个hive查询我触发:

VAR1 =`hive -e“……

2 条回复
  1. 0# 大黑骡子王 | 2019-08-31 10-32



    尝试子查询




    1. select c1., c2., c3. from
      (select count(
      ) from table1) c1,
      (select count() from table2) c2,
      (select count(
      ) from table3) c3;

    2. </code>

登录 后才能参与评论