Reputation: 1069
So I am trying to do something like:
%DECLARE Variable `cat src/documents/item.json`;
Filter BY field = Variable;
But I am getting an error saying:
ERROR org.apache.pig.Main - java.lang.RuntimeException: Error executing shell command: Command exit with exit code of 1
Can someone suggests what's wrong? Thanks!
Upvotes: 0
Views: 71
Reputation: 409
Most likely "src/documents/item.json" doesn't exist and failing.
Interesting that I fixed https://issues.apache.org/jira/browse/PIG-5349 just today that would have shown proper error message in addition to the exit code.
With that change, it should print out something like
"cat: src/documents/item.jsonl: No such file or directory"
Upvotes: 1