refactored the hadoop mode <-> map reduce job interaction