Package org.apache.hadoop.raid

Examples of org.apache.hadoop.raid.RaidShell


   */
  public void testRaidShell() throws Exception {
    try {
      System.out.println("Test shell unraided files with < 3 replication");
      createClusters(true);
      RaidShell shell = new RaidShell(conf);
      String[] args = new String[2];
      args[0] = "-findMissingParityFiles";
      args[1] = root.toString();
      ToolRunner.run(shell, args);
    } catch (Exception e) {
View Full Code Here


      System.out.println("Start testBadParityFilesRestore");
      createClusters();
      FileStatus[] files = fileSys.listStatus(new Path("/xor/3"));
      List<FileStatus> lfs = Arrays.asList(files);
      assertEquals(xorBadFiles.size(), verifyRepl(lfs, (short)2));
      RaidShell shell = new RaidShell(conf);
      String[] args = new String[5];
      args[0] = "-verifyParity";
      args[1] = "-repl";
      args[2] = "2";
      args[3] = "-restore";
View Full Code Here

TOP

Related Classes of org.apache.hadoop.raid.RaidShell

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.