Package org.apache.hadoop.hdfs

Examples of org.apache.hadoop.hdfs.BlockReaderTestUtil


  static LocatedBlock testBlock = null;

  @BeforeClass
  public static void setupCluster() throws Exception {
    final int REPLICATION_FACTOR = 1;
    util = new BlockReaderTestUtil(REPLICATION_FACTOR);
    // Create file.
    util.writeFile(TEST_FILE, FILE_SIZE_K);
    // Now get its blocks.
    List<LocatedBlock> blkList = util.getFileBlocks(TEST_FILE, FILE_SIZE_K);
    testBlock = blkList.get(0);     // Use the first block to test
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.BlockReaderTestUtil

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.