1

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

user7337271
  • 1,662
  • 1
  • 14
  • 23

1 Answers1

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)

Community
  • 1
  • 1
wlk
  • 5,695
  • 6
  • 54
  • 72