List<Map<String, String>> resources = new ArrayList<Map<String,String>>();
// 处理脚本中的 资源引用 语句
script = resolvScriptResource(resources, script, applicationContext);
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));
}