|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.conf.Configured org.apache.avro.mapred.tether.TetherJob
public class TetherJob
Constructs and submits tether jobs. This may be used as an API-based method to launch tether jobs.
Field Summary | |
---|---|
static String |
TETHER_EXEC
|
static String |
TETHER_EXEC_ARGS
|
static String |
TETHER_EXEC_CACHED
|
Constructor Summary | |
---|---|
TetherJob()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TETHER_EXEC
public static final String TETHER_EXEC_ARGS
public static final String TETHER_EXEC_CACHED
Constructor Detail |
---|
public TetherJob()
Method Detail |
---|
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
IOException
public static RunningJob submitJob(JobConf conf) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |