Upgrade hadoop to 1.2.1 and add override method to upgrade

* All the tests are compiled successfully with 'mvn install'