public class HadoopExecutableManager extends ExecutableManager
HadoopExecutableManager is a specialization of
ExecutableManager and provides HDFS-specific support for secondary
outputs, task-logs etc.
HadoopExecutableManager provides support for secondary outputs
of the managed process and also persists the logs of the tasks on HDFS.command, exitCode, inputBytes, inputRecords, outerrThreadsError, outputBytes, outputRecords, stdin| Constructor and Description |
|---|
HadoopExecutableManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close and cleanup the
ExecutableManager. |
void |
configure(POStream stream)
Configure and initialize the
ExecutableManager. |
protected void |
exec()
Start execution of the external process.
|
protected void |
processError(java.lang.String error)
Workhorse to process the stderr stream of the managed process.
|
runpublic void configure(POStream stream) throws java.io.IOException, ExecException
ExecutableManagerExecutableManager.configure in class ExecutableManagerstream - POStream operatorjava.io.IOExceptionExecExceptionprotected void exec()
throws java.io.IOException
ExecutableManagerstderr of
the managed process.exec in class ExecutableManagerjava.io.IOExceptionpublic void close()
throws java.io.IOException
ExecutableManagerExecutableManager.close in class ExecutableManagerjava.io.IOExceptionprotected void processError(java.lang.String error)
ExecutableManagerExecuatbleManager just sends out the received
error message to the stderr of itself.processError in class ExecutableManagererror - error message from the managed process.Copyright © 2007-2012 The Apache Software Foundation