Examples of run()

Examples of org.apache.hadoop.examples.terasort.TeraGen.run()

    TeraGen teraGen = new TeraGen();
    LOG.info("Starting TeraGen with {} tasktrackers, {} bytes per node, {} rows",
        new Object[] { numTaskTrackers, bytesPerNode, rows});
    teraGen.run(new String[] { "" + rows, "input" });
    LOG.info("TeraGen took {} ms", stopWatch.getTime());

  private void runTeraSort() throws Exception {
View Full Code Here

Examples of org.apache.hadoop.examples.terasort.TeraSort.run()

    StopWatch stopWatch = new StopWatch();
    TeraSort teraSort = new TeraSort();
    LOG.info("Starting TeraSort");
    teraSort.run(new String[] { "input", "output" });
    LOG.info("TeraSort took {} ms", stopWatch.getTime());

  private void runTeraValidate() throws Exception {
View Full Code Here

Examples of org.apache.hadoop.examples.terasort.TeraValidate.run()

    StopWatch stopWatch = new StopWatch();
    TeraValidate teraValidate = new TeraValidate();
    LOG.info("Starting TeraValidate");
    teraValidate.run(new String[] { "output", "report" });
    LOG.info("TeraValidate took {} ms", stopWatch.getTime());
View Full Code Here

Examples of org.apache.hadoop.fs.FsShell.run()


    FsShell shell = new FsShell(conf);
    try {
      LOG.info("Changing the permissions for inputPath " + ioPath.toString());
      shell.run(new String[] {"-chmod","-R","777", ioPath.toString()});
    } catch (Exception e) {
      LOG.error("Couldnt change the file permissions " , e);
      throw new IOException(e);
View Full Code Here

Examples of org.apache.hadoop.fs.TestDFSIO.run()

      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.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

Examples of org.apache.hadoop.fs.shell.Command.run()

      try {
        instance = commandFactory.getInstance(cmd);
        if (instance == null) {
          throw new UnknownCommandException();
        exitCode = instance.run(Arrays.copyOfRange(argv, 1, argv.length));
      } catch (IllegalArgumentException e) {
        displayError(cmd, e.getLocalizedMessage());
        if (instance != null) {
          printInstanceUsage(System.err, instance);
View Full Code Here

Examples of org.apache.hadoop.fs.shell.FsCommand.run()

    chown.setConf(new Configuration());

    // The following are valid (no exception expected).
    chown.run("user", "/path");
    chown.run("user:group", "/path");
    chown.run(":group", "/path");

    // The following are valid only on Windows.
    assertValidArgumentsOnWindows(chown, "User With Spaces", "/path");
View Full Code Here

Examples of org.apache.hadoop.ha.MiniZKFCCluster.DummyZKFC.run()

    assertEquals(0, runFC(svc, "-formatZK"));
    // Run the other cluster without formatting, should barf because
    // it uses a different parent znode
        zkfcInOtherCluster.run(new String[]{}));
    // Should succeed in formatting the second cluster
    assertEquals(0, zkfcInOtherCluster.run(new String[]{"-formatZK"}));

    // But should not have deleted the original base node from the first
View Full Code Here

Examples of org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.run()

    System.out.println("HFile information for " + resultPath);

    HFilePrettyPrinter hfpp = new HFilePrettyPrinter();
    hfpp.run(new String[] { "-m", "-f", resultPath.toString() });

  private Path tryUsingSimpleOutputPath(Path resultPath) throws IOException {
    if (inputFileNames.size() == 1) {
      // In case of only one input set output to be consistent with the
View Full Code Here

Examples of org.apache.hadoop.hbase.util.LoadTestTool.run()

    final byte[] family = Bytes.toBytes("test_cf");
    desc.addFamily(new HColumnDescriptor(family));
    admin.createTable(desc); // create with one region

    // write some data, not much
    int ret = loadTool.run(new String[] { "-tn", tableName.getNameAsString(), "-write",
        String.format("%d:%d:%d", 1, 10, 10), "-num_keys", String.valueOf(numKeys), "-skip_init" });
    if (0 != ret) {
      String errorMsg = "Load failed with error code " + ret;
View Full Code Here
Copyright © 2018 www.massapi.com. 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.