【发布时间】:2019-01-30 10:59:49
【问题描述】:
例子:
代替 hive --hiveconf table=employee --hiveconf year=2019 -f sample.hql
我可以使用 meld_beeline --hiveconf table=employee --hiveconf year=2019-f sample.hql
【问题讨论】:
标签: bash unix hive bigdata hiveql
例子:
代替 hive --hiveconf table=employee --hiveconf year=2019 -f sample.hql
我可以使用 meld_beeline --hiveconf table=employee --hiveconf year=2019-f sample.hql
【问题讨论】:
标签: bash unix hive bigdata hiveql
假设你使用的是 bash,你可以使用变量替换:
cmd=hive
$cmd --hiveconf table=employee --hiveconf year=2019 -f sample.hql
${cmd/hive/meld_beeline} --hiveconf table=employee --hiveconf year=2019 -f sample.hql
【讨论】: