oozie中运行pig action-node时返回的错误参数参考
我在使用oozie运行pig时,经常会遇到如下异常:Main class [org.apache.oozie.action.hadoop.PigMain], exit code [6],后来查找了一些文档,知道了这是使用UDF函数时出的问题,今天把常见的错误返回值贴出来供大家参考。
Pig返回值及其意义:
返回值 | 意义 | 注释 |
---|---|---|
0 | 成功 | |
1 | Retriable failure | |
2 | Failure | |
3 | Partial failure | Used with multiquery; |
4 | Illegal arguments passed to Pig | |
5 | IOException thrown | Would usually be thrown by a UDF |
6 | PigException thrown | Usually means a Python UDF raised an exception |
7 | ParseException thrown | can happen after parsing if variable substitution is being done |
8 | Throwable thrown | an unexpected exception |