v2
code for hadoop-2.2.0