I am running Cloudera's VM (CH3). I've copied a simple UDF in my text editor, but I don't know how to compile it in order to be able to call it in a script. The Pig UDF manual http://pig.apache.org/docs/r0.7.0/udf.html says to build pig.jar, however the link to SVN is broken: svn co http://svn.apache.org/repos/asf/hadoop/pig/trunk. Can somebody please walk me through how to they were able to compile a UDF? thank you
Asked
Active
Viewed 575 times
1 Answers
0
The easiest way is to use Maven repository from Cloudera, you just specify Pig as a dependency in your project.
When you build your project it is good idea to use option jar-with-dependencies then it is much easier to use this UDF in your scripts (no more problems with classpath)