【问题标题】:Can I just substitute "hive" with "meld_beeline" while executing hql files in CLI在 CLI 中执行 hql 文件时,我可以用“meld_beeline”替换“hive”吗
【发布时间】: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


    【解决方案1】:

    假设你使用的是 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
    

    【讨论】:

    • 谢谢。那么,我可以用 meld_beeline 替换 hive 而不更改任何其他选项?并且查询将在 meld_beeline 而不是 hive 中运行?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-21
    • 1970-01-01
    • 2019-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多