Examples of FastCopyFileStatus


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

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
TOP
Copyright © 2018 www.massapi.com. 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.