Alexander Dean’s tutorial published in SDJ:
In this article you will learn how to write a user-defined function
(“UDF”) to work with the Apache Hive platform. We will start gently
with an introduction to Hive, then move on to developing the UDF and
writing tests for it. We will write our UDF in Java, but use Scala’s
SBT as our build tool and write our tests in Scala with Specs2.
As far as I know it’s quite easy to write UDFs for Pig and Hive in any language that has a JVM implementation (Python with Jython, Ruby with JRuby, Groovy).
Original title and link: Writing Hive UDFs With Java - a Tutorial ( ©myNoSQL)