|
||||||||||
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 either be used as a commandline-based or API-based method to launch tether jobs.
Constructor Summary | |
---|---|
TetherJob()
|
Method Summary | |
---|---|
static URI |
getExecutable(org.apache.hadoop.mapred.JobConf job)
Get the URI of the application's executable. |
String |
getName()
Name of tool, to be used in listings. |
String |
getShortDescription()
1-line description to be used in command listings. |
int |
run(InputStream ins,
PrintStream outs,
PrintStream err,
List<String> args)
Runs the tool with supplied arguments. |
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,
URI executable)
Set the URI for the application's executable. |
static org.apache.hadoop.mapred.RunningJob |
submitJob(org.apache.hadoop.mapred.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 |
Constructor Detail |
---|
public TetherJob()
Method Detail |
---|
public static URI getExecutable(org.apache.hadoop.mapred.JobConf job)
public static void setExecutable(org.apache.hadoop.mapred.JobConf job, URI executable)
public 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
public String getName()
Tool
getName
in interface Tool
public String getShortDescription()
Tool
getShortDescription
in interface Tool
public int run(InputStream ins, PrintStream outs, PrintStream err, List<String> args) throws Exception
Tool
run
in interface Tool
ins
- Input stream to read data (typically System.in).outs
- Output of tool (typically System.out).err
- Error stream (typically System.err).args
- Non-null list of arguments.
Exception
- Just like main(), tools may throw Exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |