Does anyone know if Bash shell works with Pig streaming the same way as
Python? I've been struggling with it without success.
Here is the bash code (filter.sh)
command /dev/stdin -arguments > /dev/stdout
And in the pig script, I did
DEFINE filter `filter.sh`
INPUT (stdin using PigStreaming(','))
OUTPUT (stdout using PigStreaming(','))
outdata = STREAM indata THROUGH filter;
I can't figure out what's wrong with the code above. But outdata is simply
an empty tuple. Can anyone help? Thanks!