Package org.apache.hadoop.hdfs.server.namenode.BlockPlacementPolicyRaid

Examples of org.apache.hadoop.hdfs.server.namenode.BlockPlacementPolicyRaid.CachedLocatedBlocks


  @Test
  public void testCachedResults() throws IOException {
    setupCluster();
    try {
      // test blocks cache
      CachedLocatedBlocks cachedBlocks = new CachedLocatedBlocks(conf, namesystem);
      String file1 = "/dir/file1";
      String file2 = "/dir/file2";
      DFSTestUtil.createFile(fs, new Path(file1), 3, (short)1, 0L);
      DFSTestUtil.createFile(fs, new Path(file2), 4, (short)1, 0L);
      verifyCachedBlocksResult(cachedBlocks, namesystem, file1);
View Full Code Here


  public void testCachedResults() throws IOException {
    setupCluster();
    try {    
      refreshPolicy();
      // test blocks cache
      CachedLocatedBlocks cachedBlocks = new CachedLocatedBlocks(conf);
      String file1 = "/dir/file1";
      String file2 = "/dir/file2";
      DFSTestUtil.createFile(fs, new Path(file1), 3, (short)1, 0L);
      DFSTestUtil.createFile(fs, new Path(file2), 4, (short)1, 0L);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.namenode.BlockPlacementPolicyRaid.CachedLocatedBlocks

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.