Hive-UDF Some Hive UDF examples The first one define using UDF and the second using GenericUDF. You could also find provided test classes.