|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.streaming.StreamJob
public class StreamJob
All the client-side work happens here. (Jar packaging, MapRed job submission and monitoring)
Constructor Summary | |
---|---|
StreamJob()
|
|
StreamJob(String[] argv,
boolean mayExit)
Deprecated. use StreamJob() with ToolRunner or set the Configuration using setConf(Configuration) and
run with run(String[]) . |
Method Summary | |
---|---|
static JobConf |
createJob(String[] argv)
This method creates a streaming job from the given argument list. |
void |
exitUsage(boolean detailed)
|
void |
fail(String message)
|
protected String |
getClusterNick()
Deprecated. |
Configuration |
getConf()
Return the configuration used by this object. |
protected String |
getHadoopClientHome()
|
protected String |
getJobTrackerHostPort()
|
protected void |
getURIs(String lcacheArchives,
String lcacheFiles)
get the uris of all the files/caches |
int |
go()
Deprecated. use run(String[]) instead. |
protected void |
init()
|
protected boolean |
isLocalHadoop()
|
protected void |
jobInfo()
|
protected void |
listJobConfProperties()
Prints out the jobconf properties on stdout when verbose is specified. |
protected void |
msg(String msg)
|
protected String |
packageJobJar()
|
int |
run(String[] args)
Execute the command with the given arguments. |
void |
setConf(Configuration conf)
Set the configuration to be used by this object. |
protected void |
setJobConf()
|
int |
submitAndMonitorJob()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
protected String[] argv_
protected boolean verbose_
protected boolean detailedUsage_
protected int debug_
protected Environment env_
protected String jar_
protected boolean localHadoop_
protected Configuration config_
protected JobConf jobConf_
protected JobClient jc_
protected ArrayList inputSpecs_
protected TreeSet seenPrimary_
protected boolean hasSimpleInputSpecs_
protected ArrayList packageFiles_
protected ArrayList shippedCanonFiles_
protected String output_
protected String mapCmd_
protected String comCmd_
protected String redCmd_
protected String cacheFiles
protected String cacheArchives
protected URI[] fileURIs
protected URI[] archiveURIs
protected String inReaderSpec_
protected String inputFormatSpec_
protected String outputFormatSpec_
protected String partitionerSpec_
protected String numReduceTasksSpec_
protected String additionalConfSpec_
protected String mapDebugSpec_
protected String reduceDebugSpec_
protected String ioSpec_
protected String addTaskEnvironment_
protected boolean outputSingleNode_
protected long minRecWrittenToEnableSkip_
protected RunningJob running_
protected JobID jobId_
protected static final String LINK_URI
Constructor Detail |
---|
@Deprecated public StreamJob(String[] argv, boolean mayExit)
setConf(Configuration)
and
run with run(String[])
.
public StreamJob()
Method Detail |
---|
public Configuration getConf()
Configurable
getConf
in interface Configurable
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
public int run(String[] args) throws Exception
Tool
run
in interface Tool
args
- command specific arguments.
Exception
public static JobConf createJob(String[] argv) throws IOException
argv
- the list args for creating a streaming job
IOException
@Deprecated public int go() throws IOException
run(String[])
instead.
IOException
protected void init()
protected void msg(String msg)
public void exitUsage(boolean detailed)
public void fail(String message)
protected String getHadoopClientHome()
protected boolean isLocalHadoop()
@Deprecated protected String getClusterNick()
protected String packageJobJar() throws IOException
IOException
protected void getURIs(String lcacheArchives, String lcacheFiles)
protected void setJobConf() throws IOException
IOException
protected void listJobConfProperties()
protected String getJobTrackerHostPort()
protected void jobInfo()
public int submitAndMonitorJob() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |