I keep getting this error, it seems pig cannot locate the jar that
contains my udf ImageProcessor.How do i build a jar that contains my udf
(p.s the UDF documentation wasnt that helpful



laptop:~/pig-0.7.0/trunk$ javac -cp $CLASSPATH:pig.jar ImageProcessor.java
laptop:~/pig-0.7.0/trunk$ bin/pig specialscript.pig
log4j:WARN No appenders could be found for logger
(org.apache.hadoop.conf.Configuration).
log4j:WARN Please initialize the log4j system properly.
2010-08-11 11:54:15,820 [main] INFO  org.apache.pig.Main - Logging error
messages to: /home/hadoop/pig-0.7.0/trunk/pig_1281542055806.log
2010-08-11 11:54:16,005 [main] INFO 
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine -
Connecting to hadoop file system at: hdfs://localhost:54310
2010-08-11 11:54:16,179 [main] INFO 
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine -
Connecting to map-reduce job tracker at: localhost:54311
2010-08-11 11:54:16,384 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1070: Could not resolve ImageProcessor using imports: [,
org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Details at logfile: /home/hadoop/pig-0.7.0/trunk/pig_1281542055806.log
laptop:~/pig-0.7.0/trunk$


Reply via email to