|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.streaming.StreamJob
public class StreamJob
All the client-side work happens here. (Jar packaging, MapRed job submission and monitoring)
Constructor Summary | |
---|---|
StreamJob(String[] argv,
boolean mayExit)
|
Method Summary | |
---|---|
void |
exitUsage(boolean detailed)
|
void |
fail(String message)
|
protected String |
getClusterNick()
|
protected String |
getHadoopClientHome()
|
protected String |
getJobTrackerHostPort()
|
protected void |
getURIs(String lcacheArchives,
String lcacheFiles)
get the uris of all the files/caches |
int |
go()
This is the method that actually intializes the job conf and submits the job to the jobtracker |
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()
|
protected void |
setJobConf()
|
protected void |
setUserJobConfProps(boolean doEarlyProps)
This method sets the user jobconf variable specified by user using -jobconf key=value |
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 boolean mayExit_
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 TreeMap<String,String> userJobConfProps_
protected String output_
protected String mapCmd_
protected String comCmd_
protected String redCmd_
protected String cluster_
protected String cacheFiles
protected String cacheArchives
protected URI[] fileURIs
protected URI[] archiveURIs
protected ArrayList configPath_
protected String hadoopAliasConf_
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 addTaskEnvironment_
protected boolean outputSingleNode_
protected long minRecWrittenToEnableSkip_
protected RunningJob running_
protected JobID jobId_
protected static String LINK_URI
Constructor Detail |
---|
public StreamJob(String[] argv, boolean mayExit)
Method Detail |
---|
public int go() throws IOException
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()
protected String getClusterNick()
protected String packageJobJar() throws IOException
IOException
protected void setUserJobConfProps(boolean doEarlyProps)
doEarlyProps
- 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 |