Package org.apache.hadoop.hdfs.tools.FastCopy

Examples of org.apache.hadoop.hdfs.tools.FastCopy.FastCopyFileStatus


  }

  private void verifyFileStatus(String file, NameNode namenode,
      FastCopy fastCopy) throws Exception {
    LOG.info("Verifying for file : " + file);
    FastCopyFileStatus fstat = fastCopy.getFileStatus(file);
    assertNotNull(fstat);
    int totalBlocks = namenode.getBlockLocations(file, 0,
        Long.MAX_VALUE).locatedBlockCount();
    assertEquals(totalBlocks, fstat.getTotalBlocks());
    assertEquals(fstat.getTotalBlocks(), fstat.getBlocksDone());
    assertEquals(FILESIZE / BLOCK_SIZE, totalBlocks);
  }
View Full Code Here



  private void verifyFileStatus(String file, NameNode namenode,
      FastCopy fastCopy) throws Exception {
    LOG.info("Verifying for file : " + file);
    FastCopyFileStatus fstat = fastCopy.getFileStatus(file);
    assertNotNull(fstat);
    int totalBlocks = namenode.getBlockLocations(file, 0,
        Long.MAX_VALUE).locatedBlockCount();
    assertEquals(totalBlocks, fstat.getTotalBlocks());
    assertEquals(fstat.getTotalBlocks(), fstat.getBlocksDone());
    assertEquals(FILESIZE / BLOCK_SIZE, totalBlocks);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.tools.FastCopy.FastCopyFileStatus

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.