made some changes to work with hadoop2
fixed the job creation for cdh4