Package org.apache.hadoop.hdfs.tools

Examples of org.apache.hadoop.hdfs.tools.AvatarDFSck


  @Test
  public void testDfsckAfterFailover() throws Exception {
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    PrintStream ps = new PrintStream(os);
    new AvatarDFSck(conf, ps).run(new String[] { "/" });
    String expected = os.toString("UTF8");
    cluster.failOver();
    ByteArrayOutputStream os1 = new ByteArrayOutputStream();
    PrintStream ps1 = new PrintStream(os1);
    new AvatarDFSck(conf, ps1).run(new String[] { "/" });
    String actual = os1.toString("UTF8");
    assertEquals(expected, actual);
  }
View Full Code Here


  @Test
  public void testDfsckAfterFailover() throws Exception {
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    PrintStream ps = new PrintStream(os);
    new AvatarDFSck(conf, ps).run(new String[] { "/" });
    String expected = os.toString("UTF8");
    cluster.failOver();
    ByteArrayOutputStream os1 = new ByteArrayOutputStream();
    PrintStream ps1 = new PrintStream(os1);
    new AvatarDFSck(conf, ps1).run(new String[] { "/" });
    String actual = os1.toString("UTF8");
    assertEquals(expected, actual);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.tools.AvatarDFSck

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.