告诉 Impala 忽略错误并继续

Tell Impala to ignore errors and continue

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

脚本

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

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

Shell

nohup sh Refresh.sh cat nohup.out 

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

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

如果您不想捕获 verbose/error 消息,您可以包含 --quiet 选项

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

请查看下面的文档 link 了解更多信息。

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