Package org.apache.hadoop.hdfs.server.datanode.DataNode

Examples of org.apache.hadoop.hdfs.server.datanode.DataNode.DataNodeDiskChecker


public class TestDataDirs {

  @Test (timeout = 10000)
  public void testGetDataDirsFromURIs() throws Throwable {
   
    DataNodeDiskChecker diskChecker = mock(DataNodeDiskChecker.class);
    doThrow(new IOException()).doThrow(new IOException()).doNothing()
      .when(diskChecker).checkDir(any(LocalFileSystem.class), any(Path.class));
    LocalFileSystem fs = mock(LocalFileSystem.class);
    Collection<URI> uris = Arrays.asList(new URI("file:/p1/"),
        new URI("file:/p2/"), new URI("file:/p3/"));
View Full Code Here


  }

  @Test (timeout = 30000)
  public void testDataDirValidation() throws Throwable {
   
    DataNodeDiskChecker diskChecker = mock(DataNodeDiskChecker.class);
    doThrow(new IOException()).doThrow(new IOException()).doNothing()
      .when(diskChecker).checkDir(any(LocalFileSystem.class), any(Path.class));
    LocalFileSystem fs = mock(LocalFileSystem.class);
    AbstractList<StorageLocation> locations = new ArrayList<StorageLocation>();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.datanode.DataNode.DataNodeDiskChecker

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.