Package com.taobao.zeus.store

Examples of com.taobao.zeus.store.FileManager


    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));
      }
View Full Code Here


      String name = "";
      String referScript = null;
      String path = uri.substring(uri.lastIndexOf('/')+1);
      Map<String, String> map = new HashMap<String, String>(2);
      if(uri.startsWith("doc://")){
        FileManager manager = (FileManager) context.getBean("fileManager");
        FileDescriptor fd = manager.getFile(path);
        name = fd.getName();
        // 把脚本放到map里,减少后面一次getFile调用
        referScript = fd.getContent();
      }
      if(args.length>1){
View Full Code Here

TOP

Related Classes of com.taobao.zeus.store.FileManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.