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
Apache Lucene, Apache Solr and all other Apache Software Foundation project and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext