Package org.apache.hadoop.mapreduce.tools

Examples of org.apache.hadoop.mapreduce.tools.CLI


  }
  /**
   * print job history from file
   */
  private void testJobHistory(Configuration conf) throws Exception {
    CLI jc = createJobClient();
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    File f = new File("src/test/resources/job_1329348432655_0001-10.jhist");
    FileSystem localFs = FileSystem.getLocal(conf);
    String historyFileUri = new Path(f.getAbsolutePath())
        .makeQualified(localFs.getUri(), localFs.getWorkingDirectory()).toUri()
View Full Code Here


  }
  /**
   * print job events list
   */
  private void testJobEvents(String jobId, Configuration conf) throws Exception {
    CLI jc = createJobClient();
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    int exitCode = runTool(conf, jc, new String[] { "-events" }, out);
    assertEquals("Exit code", -1, exitCode);

    exitCode = runTool(conf, jc, new String[] { "-events", jobId, "0", "100" },
View Full Code Here

  }
  /**
   * print job status
   */
  private void testJobStatus(String jobId, Configuration conf) throws Exception {
    CLI jc = createJobClient();
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    // bad options
    int exitCode = runTool(conf, jc, new String[] { "-status" }, out);
    assertEquals("Exit code", -1, exitCode);

View Full Code Here

    // because this method does not implemented still.
    verifyJobPriority(jobId, "NORMAL", conf, createJobClient());
  }

  protected CLI createJobClient() throws IOException {
    return new CLI();
  }
View Full Code Here

    assertTrue("Couldn't find profiler output", profileOutFile.exists());
    assertTrue("Couldn't remove profiler output", profileOutFile.delete());
  }

  protected CLI createJobClient() throws IOException {
    return new CLI();
  }
View Full Code Here

    assertTrue("Couldn't find profiler output", profileOutFile.exists());
    assertTrue("Couldn't remove profiler output", profileOutFile.delete());
  }

  protected CLI createJobClient() throws IOException {
    return new CLI();
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.mapreduce.tools.CLI

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.