Java Code Examples for org.apache.hadoop.mapreduce.MRJobConfig#PRESERVE_FAILED_TASK_FILES

The following examples show how to use org.apache.hadoop.mapreduce.MRJobConfig#PRESERVE_FAILED_TASK_FILES . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestStreamingStatus.java    From hadoop with Apache License 2.0 6 votes vote down vote up
protected String[] genArgs(String jobtracker, String mapper, String reducer)
{
  return new String[] {
    "-input", INPUT_FILE,
    "-output", OUTPUT_DIR,
    "-mapper", mapper,
    "-reducer", reducer,
    "-jobconf", MRJobConfig.NUM_MAPS + "=1",
    "-jobconf", MRJobConfig.NUM_REDUCES + "=1",
    "-jobconf", MRJobConfig.PRESERVE_FAILED_TASK_FILES + "=true",
    "-jobconf", "stream.tmpdir=" + new Path(TEST_ROOT_DIR).toUri().getPath(),
    "-jobconf", JTConfig.JT_IPC_ADDRESS + "="+jobtracker,
    "-jobconf", "fs.default.name=file:///",
    "-jobconf", "mapred.jar=" + TestStreaming.STREAMING_JAR,
    "-jobconf", "mapreduce.framework.name=yarn"
  };
}
 
Example 2
Source File: TestStreamingStatus.java    From big-c with Apache License 2.0 6 votes vote down vote up
protected String[] genArgs(String jobtracker, String mapper, String reducer)
{
  return new String[] {
    "-input", INPUT_FILE,
    "-output", OUTPUT_DIR,
    "-mapper", mapper,
    "-reducer", reducer,
    "-jobconf", MRJobConfig.NUM_MAPS + "=1",
    "-jobconf", MRJobConfig.NUM_REDUCES + "=1",
    "-jobconf", MRJobConfig.PRESERVE_FAILED_TASK_FILES + "=true",
    "-jobconf", "stream.tmpdir=" + new Path(TEST_ROOT_DIR).toUri().getPath(),
    "-jobconf", JTConfig.JT_IPC_ADDRESS + "="+jobtracker,
    "-jobconf", "fs.default.name=file:///",
    "-jobconf", "mapred.jar=" + TestStreaming.STREAMING_JAR,
    "-jobconf", "mapreduce.framework.name=yarn"
  };
}
 
Example 3
Source File: TestStreamAggregate.java    From hadoop with Apache License 2.0 5 votes vote down vote up
protected String[] genArgs() {
  return new String[] {
    "-input", INPUT_FILE.getAbsolutePath(),
    "-output", OUTPUT_DIR.getAbsolutePath(),
    "-mapper", map,
    "-reducer", "aggregate",
    "-jobconf", MRJobConfig.PRESERVE_FAILED_TASK_FILES + "=true",
    "-jobconf", "stream.tmpdir="+System.getProperty("test.build.data","/tmp")
  };
}
 
Example 4
Source File: TestStreamingKeyValue.java    From hadoop with Apache License 2.0 5 votes vote down vote up
protected String[] genArgs(boolean ignoreKey) {
  return new String[] {
    "-input", INPUT_FILE.getAbsolutePath(),
    "-output", OUTPUT_DIR.getAbsolutePath(),
    "-mapper", TestStreaming.CAT,
    "-jobconf", MRJobConfig.PRESERVE_FAILED_TASK_FILES + "=true", 
    "-jobconf", "stream.non.zero.exit.is.failure=true",
    "-jobconf", "stream.tmpdir="+System.getProperty("test.build.data","/tmp"),
    "-jobconf", "stream.map.input.ignoreKey="+ignoreKey,      
  };
}
 
Example 5
Source File: TestStreamAggregate.java    From big-c with Apache License 2.0 5 votes vote down vote up
protected String[] genArgs() {
  return new String[] {
    "-input", INPUT_FILE.getAbsolutePath(),
    "-output", OUTPUT_DIR.getAbsolutePath(),
    "-mapper", map,
    "-reducer", "aggregate",
    "-jobconf", MRJobConfig.PRESERVE_FAILED_TASK_FILES + "=true",
    "-jobconf", "stream.tmpdir="+System.getProperty("test.build.data","/tmp")
  };
}
 
Example 6
Source File: TestStreamingKeyValue.java    From big-c with Apache License 2.0 5 votes vote down vote up
protected String[] genArgs(boolean ignoreKey) {
  return new String[] {
    "-input", INPUT_FILE.getAbsolutePath(),
    "-output", OUTPUT_DIR.getAbsolutePath(),
    "-mapper", TestStreaming.CAT,
    "-jobconf", MRJobConfig.PRESERVE_FAILED_TASK_FILES + "=true", 
    "-jobconf", "stream.non.zero.exit.is.failure=true",
    "-jobconf", "stream.tmpdir="+System.getProperty("test.build.data","/tmp"),
    "-jobconf", "stream.map.input.ignoreKey="+ignoreKey,      
  };
}