public class TetherJob extends 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(JobConf job)
Get the URI of the application's executable.
|
static RunningJob |
runJob(JobConf job)
Submit a job to the map/reduce cluster.
|
static void |
setExecutable(JobConf job,
File executable)
Set the URI for the application's executable.
|
static void |
setExecutable(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 RunningJob |
submitJob(JobConf conf)
Submit a job to the Map-Reduce framework.
|
getConf, setConfpublic static final String TETHER_EXEC
public static final String TETHER_EXEC_ARGS
public static final String TETHER_EXEC_CACHED
public static URI getExecutable(JobConf job)
public static void setExecutable(JobConf job, File executable)
public static void setExecutable(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 RunningJob runJob(JobConf job) throws IOException
IOExceptionpublic static RunningJob submitJob(JobConf conf) throws IOException
IOExceptionCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.