Package org.apache.hadoop.fs

Examples of org.apache.hadoop.fs.TestDFSIO$ReadMapper


    // (https://issues.apache.org/jira/browse/MAPREDUCE-1832)
    // so we use a local copy of TestDFSIO with this patch
    int runs = Integer.parseInt(System.getProperty("testDFSIORuns", "3"));
    for (int i = 0; i < runs; i++) {
      LOG.info("Starting TestDFSIO run {} of {}", i + 1, runs);
      TestDFSIO testDFSIO = new TestDFSIO();
      JobConf jobConf = controller.getJobConf();
      jobConf.set("test.build.data", "/user/root/benchmark/TestDFSIO");
      testDFSIO.setConf(jobConf);
      testDFSIO.run("-write -nrFiles 10 -fileSize 1000".split(" "));
      testDFSIO.run("-read -nrFiles 10 -fileSize 1000".split(" "));
      testDFSIO.run(new String[] { "-clean" });
      LOG.info("Completed TestDFSIO run {} of {}", i + 1, runs);
    }
  }
View Full Code Here


    // (https://issues.apache.org/jira/browse/MAPREDUCE-1832)
    // so we use a local copy of TestDFSIO with this patch
    int runs = Integer.parseInt(System.getProperty("testDFSIORuns", "3"));
    for (int i = 0; i < runs; i++) {
      LOG.info("Starting TestDFSIO run {} of {}", i + 1, runs);
      TestDFSIO testDFSIO = new TestDFSIO();
      JobConf jobConf = controller.getJobConf();
      jobConf.set("test.build.data", "/user/root/benchmark/TestDFSIO");
      testDFSIO.setConf(jobConf);
      testDFSIO.run("-write -nrFiles 10 -fileSize 1000".split(" "));
      testDFSIO.run("-read -nrFiles 10 -fileSize 1000".split(" "));
      testDFSIO.run(new String[] { "-clean" });
      LOG.info("Completed TestDFSIO run {} of {}", i + 1, runs);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.fs.TestDFSIO$ReadMapper

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.