蜂房批处理模式退出状态列表? [英] Hive Batch mode List of exit status?
问题描述
在以批处理模式执行Hive查询时,我们是否有可能的标准返回码列表,可用于正确的错误记录和监视?
While executing Hive query in batch mode do we have list of possible standard return codes, which can be used proper error logging and monitoring?
例如:hive -f some_samplescript.hql将返回
Eg: hive -f some_samplescript.hql will returns
0 - Successful execution
1 - FAILED due Execution Error (like Table AlreadyExistExcetion)
64 - Syntax Error (like Statement not terminated)
如果我们知道返回码列表,则可以更轻松地进行适当的监视/通知.
If we know list of return codes it will easier for proper monitoring/notification.
推荐答案
在此配置中完成的配置单元10中发布了一些通用规则
There are some general rules that were release in hive 10 that were completed under this jira
https://issues.apache.org/jira/browse/HIVE-3001
这些只是一般性指导.通常,配置单元错误不会给您带来实际的问题,您将不得不去查看作业日志以获取更多详细信息.
These are just general guidance. Generally the hive error won't give you the actual problem and you will have to go and look in the jobs logs for more details.
这篇关于蜂房批处理模式退出状态列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!