public class TetherJob
extends org.apache.hadoop.conf.Configured
Modifier and Type | Field and Description |
---|---|
static String |
TETHER_EXEC |
static String |
TETHER_EXEC_ARGS |
static String |
TETHER_EXEC_CACHED |
Constructor and Description |
---|
TetherJob() |
Modifier and Type | Method and Description |
---|---|
static URI |
getExecutable(org.apache.hadoop.mapred.JobConf job)
Get the URI of the application's executable.
|
static org.apache.hadoop.mapred.RunningJob |
runJob(org.apache.hadoop.mapred.JobConf job)
Submit a job to the map/reduce cluster.
|
static void |
setExecutable(org.apache.hadoop.mapred.JobConf job,
File executable)
Set the URI for the application's executable.
|
static void |
setExecutable(org.apache.hadoop.mapred.JobConf job,
File executable,
List<String> args,
boolean cached)
Set the URI for the application's executable (i.e the program to run in a subprocess
and provides the mapper/reducer).
|
static org.apache.hadoop.mapred.RunningJob |
submitJob(org.apache.hadoop.mapred.JobConf conf)
Submit a job to the Map-Reduce framework.
|
public static final String TETHER_EXEC
public static final String TETHER_EXEC_ARGS
public static final String TETHER_EXEC_CACHED
public static URI getExecutable(org.apache.hadoop.mapred.JobConf job)
public static void setExecutable(org.apache.hadoop.mapred.JobConf job, File executable)
public static void setExecutable(org.apache.hadoop.mapred.JobConf job, File executable, List<String> args, boolean cached)
job
- - Jobexecutable
- - The URI of the executableargstr
- - A string of additional argumentscached
- - If true, the executable URI is cached using DistributedCache
- if false its not cached. I.e if the file is already stored on each local file system
or if its on a NFS sharepublic static org.apache.hadoop.mapred.RunningJob runJob(org.apache.hadoop.mapred.JobConf job) throws IOException
IOException
public static org.apache.hadoop.mapred.RunningJob submitJob(org.apache.hadoop.mapred.JobConf conf) throws IOException
IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.