Pig Scripts Failing with PIGStorage('|')

Hi Abhinav,

When I am running the below command I am getting an error as below. Additionally it is showing message as “Job was KILLED”

movieData = LOAD ‘/user/amold72427519/ml-100k/u.item’ USING PIGSTORAGE(’|’)
AS (movieID: Int, movieTitle: chararray, releaseDate: chararray, videoRelease: chararray, imdbLink: chararray);

dump movieData;

Message: java.net.ConnectException: Connection refused (Connection refused)
2018-08-21 07:04:29,514 [main] ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Could not resolve PIGSTORAGE using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Failed to parse: Pig script failed to parse:
<file pig-7525.pig, line 6, column 60> pig script failed to validate: org.apache.pig.backend.executionengine.ExecException: ERROR 1070: Could not resolve PIGSTORAGE using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]

Finally able to resolve the issue… there were some issues in my code and seems it is tooo case sensitive :slight_smile:

2 Likes

Hi,

I’m having a same issue, can you please post the code which worked.