I am trying to use a User Defined Function and I am unable to get Pig to recognize my compiled jar file when I have a path to the file. The file works when I put the jar file into the working directory for Pig, but I am a teaching assistant for a big-data course and we need students to put their work in their respective directories.
Below is my pig script for my application: REGISTER MovingAverage.jar;
The first line works, but the second gives me:
ERROR org.apache.pig.tools.grunt.Grunt - ERROR 101: file '/class/s14419x/lab7/MovingAverage.jar' does not exist.
I am teaching UDFs for a lab tomorrow so I would really appreciate any help or insight you could offer.
Also, big fan of Pig. Keep it up!
Tony Anthony Alleven (952)-250-7166 Senior, Computer Engineering IEEE | President Microsoft Ambassador
Re: Unable to add file paths when registering a UDF