public class StreamJob extends Object implements Tool
构造器和说明 |
---|
StreamJob() |
StreamJob(String[] argv,
boolean mayExit)
已过时。
use StreamJob() with ToolRunner or set the
Configuration using
setConf(Configuration) and
run with run(String[]) . |
限定符和类型 | 方法和说明 |
---|---|
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()
已过时。
|
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()
已过时。
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() |
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_
@Deprecated public StreamJob(String[] argv, boolean mayExit)
setConf(Configuration)
and
run with run(String[])
.public StreamJob()
public Configuration getConf()
Configurable
getConf
在接口中 Configurable
public void setConf(Configuration conf)
Configurable
setConf
在接口中 Configurable
public int run(String[] args) throws Exception
Tool
public static JobConf createJob(String[] argv) throws IOException
argv
- the list args for creating a streaming jobIOException
@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
Copyright © 2009 The Apache Software Foundation