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 |
static String |
TETHER_PROTOCOL |
Constructor and Description |
---|
TetherJob() |
Modifier and Type | Method and Description |
---|---|
static URI |
getExecutable(JobConf job)
Get the URI of the application's executable.
|
static TetheredProcess.Protocol |
getProtocol(JobConf job)
Extract from the job configuration file an instance of the TRANSPROTO
enumeration to represent the protocol to use for the communication
|
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 void |
setProtocol(JobConf job,
String proto)
Determines which transport protocol (e.g http or sasl) used to communicate
between the parent and subprocess
|
static RunningJob |
submitJob(JobConf conf)
Submit a job to the Map-Reduce framework.
|
getConf, setConf
public static final String TETHER_EXEC
public static final String TETHER_EXEC_ARGS
public static final String TETHER_EXEC_CACHED
public static final String TETHER_PROTOCOL
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 executableargs
- - List of additional arguments; Null if no 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 TetheredProcess.Protocol getProtocol(JobConf job)
job
- public static RunningJob runJob(JobConf job) throws IOException
IOException
public static RunningJob submitJob(JobConf conf) throws IOException
IOException
public static void setProtocol(JobConf job, String proto) throws IOException
job
- - job configurationproto
- - String identifying the protocol currently http or saslIOException
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.