企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
将`max_comp_id`变量接收到的值传递到`hive_script.hql`文件 `vi testhive.sh` ~~~ #!/bin/bash max_comp_id=$(hive -e "set hive.cli.print.header=false; select max(comp_id) from ods_tradecn_trade_company;") hive -hiveconf "max_comp_id"="$max_comp_id" -f ./hive_script.hql ~~~ `vi hive_script.hql` 创建脚本 ~~~ select * from ods_tradecn_trade_company where comp_id='${hiveconf:max_comp_id}'; ~~~