Package com.hdfsTools.impl

Examples of com.hdfsTools.impl.upLoadImpl


   * @param deleteSource
   * @return true,false
   */
  public boolean copyFiletoFs(String fsUrl, String localFile, String dst,
      boolean deleteSource) {
    upLoadDao upload = new upLoadImpl();
    getConf().getStrings("dfs.replication");
    System.out.println(getConf().toString());
    System.out.print("dfs.replication:"
        + getConf().get("dfs.replication").toString());
    return upload.copyFiletoFs(getConf(), localFile, dst, deleteSource);
  }
View Full Code Here


   * @param safelevel
   * @return
   */
  public boolean copytoDFS(File localFile, String dst, boolean deleteSource,
      String filename, int safelevel) {
    upLoadDao upload = new upLoadImpl();
    return upload.copytoDfs(getConf(), localFile, dst, deleteSource,
        filename, safelevel);

  }
View Full Code Here

    new upLoadAction().copyFiletoFs(fsUrl, localFile, dst, deleteSource);
    // new upLoadAction(fsUrl);
  }

  public boolean fileExists(String filePath) {
    upLoadDao upload = new upLoadImpl();
    return upload.fileExists(getConf(), filePath);

  }
View Full Code Here

TOP

Related Classes of com.hdfsTools.impl.upLoadImpl

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.