I have a pig script stored in HDFS that i need to run from the local filesystem.
I'm trying this but it doesn't work: pig -exectype tez -file /path/to/script/script.pig
It returns an error saying the script does not exist.
Since I am executing in Tez mode, i would assume that it looks in HDFS for the script and not the local filesystem.
Just tried that and it's still saying ERROR 2997: Encountered IOException. File script.pig does not exist
So as I expected, it is searching the local filesystem and not HDFS. I recreated the HDFS path on the local filesystem and dropped the script in there, and it ran it.
How can I get pig to search HDFS for the script to execute?