Misc Hadoop code