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  | 
static String | 
TETHER_PROTOCOL  | 
| 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 TetheredProcess.Protocol | 
getProtocol(org.apache.hadoop.mapred.JobConf job)
Extract from the job configuration file an instance of the TRANSPROTO
 enumeration to represent the protocol to use for the communication 
 | 
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 void | 
setProtocol(org.apache.hadoop.mapred.JobConf job,
           String proto)
Determines which transport protocol (e.g http or sasl) used to communicate
 between the parent and subprocess 
 | 
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 final String TETHER_PROTOCOL
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 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(org.apache.hadoop.mapred.JobConf job)
job - public static org.apache.hadoop.mapred.RunningJob runJob(org.apache.hadoop.mapred.JobConf job)
                                                  throws IOException
IOExceptionpublic static org.apache.hadoop.mapred.RunningJob submitJob(org.apache.hadoop.mapred.JobConf conf)
                                                     throws IOException
IOExceptionpublic static void setProtocol(org.apache.hadoop.mapred.JobConf job,
                               String proto)
                        throws IOException
job - - job configurationproto - - String identifying the protocol currently http or saslIOExceptionCopyright © 2009–2019 The Apache Software Foundation. All rights reserved.