HadoopGuide is a project mainly written in ..., it's free.
Code for the book Hadoop: The Definitive Guide