在猪中执行 shell 命令时出错
Error executing shell command in 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
有人可以指出问题所在吗?谢谢!
很可能 "src/documents/item.json" 不存在且失败。
有趣的是我修复了
https://issues.apache.org/jira/browse/PIG-5349
就在今天,除了退出代码之外,它还会显示正确的错误消息。
有了这个改变,它应该打印出类似
的东西
"cat: src/documents/item.jsonl: No such file or directory"
所以我正在尝试做类似的事情:
%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" 不存在且失败。
有趣的是我修复了 https://issues.apache.org/jira/browse/PIG-5349 就在今天,除了退出代码之外,它还会显示正确的错误消息。
有了这个改变,它应该打印出类似
的东西"cat: src/documents/item.jsonl: No such file or directory"