jobContext.setResources(resources);
hp.setProperty(PropertyKeys.JOB_SCRIPT, script);
FileManager fileManager=(FileManager) applicationContext.getBean("fileManager");
ProfileManager profileManager=(ProfileManager) applicationContext.getBean("profileManager");
String owner=fileManager.getFile(history.getFileId()).getOwner();
Profile profile=profileManager.findByUid(owner);
if(profile!=null && profile.getHadoopConf()!=null){
for(String key:profile.getHadoopConf().keySet()){
hp.setProperty(key, profile.getHadoopConf().get(key));
}
}
jobContext.setProperties(new RenderHierarchyProperties(hp));
hp.setProperty("hadoop.mapred.job.zeus_id", "zeus_debug_"+history.getId());
List<Job> pres = new ArrayList<Job>(1);