Larry Ogrodnek has written a set of wrapper classes that make it possible
to write Hive TRANSFORM/MAP/REDUCE scripts in Java in a style that
more closely resembles conventional Hadoop MR programs.
A blog post describing this library can be found here: http://dev.bizo.com/2009/10/hive-map-reduce-in-java.html
The source code (with Apache license) is available here: http://github.com/ogrodnek/shmrj
We should add this to contrib.