【问题标题】:Tell Impala to ignore errors and continue告诉 Impala 忽略错误并继续
【发布时间】:2016-08-10 13:06:54
【问题描述】:

我正在尝试使用 shell nohup 运行长时间刷新脚本,

脚本

#!/bin/bash
impala-shell -f Refresh.sql -i "landingarea"

但是每次遇到错误就会停止,我必须进入脚本修复错误并从头重新运行,我喜欢它只是运行到最后我可以捡起错误,这可能吗?

外壳

nohup sh Refresh.sh cat nohup.out 

【问题讨论】:

    标签: shell hadoop hive impala


    【解决方案1】:

    请使用 -c 查询失败时继续。

    impala-shell -f -c Refresh.sql -i "landingarea"
    

    如果您不想捕获详细/错误消息,您可以包含 --quiet 选项

     impala-shell -f -c -quiet Refresh.sql -i "landingarea"
    

    请通过下面的文档链接了解更多信息。

    http://www.cloudera.com/documentation/cdh/5-1-x/Impala/Installing-and-Using-Impala/ciiu_shell_options.html

    【讨论】:

    • 很好的答案很好的解释,感谢您的链接和您的帮助:)
    猜你喜欢
    • 2013-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-12
    • 1970-01-01
    • 2012-03-12
    相关资源
    最近更新 更多