update hadoop dependency to 2.4.0

follow java formatting guidelines