fix bugs on Hadoop2 module