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(String error)
Workhorse to process the stderr stream of the managed process.
|
run
public void configure(POStream stream) throws IOException, ExecException
ExecutableManager
ExecutableManager
.configure
in class ExecutableManager
stream
- POStream operatorIOException
ExecException
protected void exec() throws IOException
ExecutableManager
stderr
of
the managed process.exec
in class ExecutableManager
IOException
public void close() throws IOException
ExecutableManager
ExecutableManager
.close
in class ExecutableManager
IOException
protected void processError(String error)
ExecutableManager
ExecuatbleManager
just sends out the received
error message to the stderr
of itself.processError
in class ExecutableManager
error
- error message from the managed process.Copyright © 2007-2012 The Apache Software Foundation