Some fixes on the hadoop job