Package com.hdfsTools.action

Examples of com.hdfsTools.action.renameAction


    dillResult result = new dillResult();
    HdfsFile file = filedao.findFile(fileId);
    String src = file.getFileUrl();// 源url
    String dst = src.substring(0, src.lastIndexOf("/")) + "/" + name;// 新的url
    System.out.println("the new name is:" + dst);
    renameAction rename = new renameAction();
    try {
      dohdfs = rename.rename(src, dst);// 操作文件系统
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }//
    if (dohdfs) {
View Full Code Here

TOP

Related Classes of com.hdfsTools.action.renameAction

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.