在pig中执行shell命令时出错

在pig中执行shell命令时出错,shell,apache-pig,Shell,Apache Pig,所以我试着做一些类似的事情: %DECLARE Variable `cat src/documents/item.json`; Filter BY field = Variable; 但我得到了一个错误,说: ERROR org.apache.pig.Main - java.lang.RuntimeException: Error executing shell command: Command exit with exit code of 1 有人能告诉我怎么了吗?谢谢 最有可能的是“sr

所以我试着做一些类似的事情:

%DECLARE Variable `cat src/documents/item.json`;
Filter BY field = Variable;
但我得到了一个错误,说:

ERROR org.apache.pig.Main - java.lang.RuntimeException: Error executing shell command: Command exit with exit code of 1
有人能告诉我怎么了吗?谢谢

最有可能的是“src/documents/item.json”不存在并且失败

有趣的是我修好了 就在今天,除了退出代码之外,它还会显示正确的错误消息

有了这个变化,它应该打印出如下内容


“cat:src/documents/item.jsonl:没有这样的文件或目录”

以为我已经包含了它,但不知怎的忘记了包含它。谢谢