I've spent a few hours getting acclimated, but I w开发者_C百科ant to find some other ways to practice.
The book Programming Pig is available online, and has a great chapter on writing UDFs: http://ofps.oreilly.com/titles/9781449302641/writing_udfs.html
The best source I have found is to look at the piggybank UDFs.
http://svn.apache.org/viewvc/pig/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/
精彩评论