This is now redundant with a very good explanation of the Hadoop version codes in the building-with-maven doc (by @srowen):
https://github.com/apache/spark/blob/master/docs/building-with-maven.md