在打印这3行后,猪存在退出代码 7 :
2014-07-16 21:57:37,271 [main] INFO org.apache.pig.Main - Apache Pig version 0.11.0-cdh4.6.0 (rexported) compiled Feb 26 2014, 03:01:22
2014-07-16 21:57:37,272 [main] INFO org.apache.pig.Main - Logging error messages to: ..../pig_1405562257268.log
2014-07-16 21:57:37,627 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /home/sam/.pigbootup not found
这是什么意思?
INFO
消息正常pig_*.log
文件不存在这是在某处记录的吗?
编辑:当我从%declare
行的末尾删除分号时问题被消除了。
去图...
答案 0 :(得分:4)
您可以查看source code中的返回代码
书Programming Pig还包含第二章中的含义列表。
我在这里复制them以供参考:
0 Success
1 Retriable failure
2 Failure
3 Partial failure - Used with multiquery; see “Nonlinear Data Flows”
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)