I have a Pig script that returns a constant string value. When I try to run the script with the following command, I get a Pig ERROR 2998:
pig -Dpig.additional.jars=Static.jar -f script.pig -l /dev/null -x local
script.pig
loaded = LOAD 'data/' USING com.twitter.elephantbird.pig.store.LzoPigStorage() AS (request);
loaded = SAMPLE loaded 0.00001;
sized = FOREACH loaded GENERATE Static(request);
DUMP sized;
What's causing the error?