org.apache.pig.backend.hadoop.streaming
Class HadoopExecutableManager
java.lang.Object
org.apache.pig.impl.streaming.ExecutableManager
org.apache.pig.backend.hadoop.streaming.HadoopExecutableManager
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HadoopExecutableManager
public HadoopExecutableManager()
configure
public void configure(POStream stream)
throws IOException,
ExecException
- Description copied from class:
ExecutableManager
- Configure and initialize the
ExecutableManager
.
- Overrides:
configure
in class ExecutableManager
- Parameters:
stream
- POStream operator
- Throws:
IOException
ExecException
exec
protected void exec()
throws IOException
- Description copied from class:
ExecutableManager
- Start execution of the external process.
This takes care of setting up the environment of the process and also
starts ProcessErrorThread to process the
stderr
of
the managed process.
- Overrides:
exec
in class ExecutableManager
- Throws:
IOException
close
public void close()
throws IOException
- Description copied from class:
ExecutableManager
- Close and cleanup the
ExecutableManager
.
- Overrides:
close
in class ExecutableManager
- Throws:
IOException
processError
protected void processError(String error)
- Description copied from class:
ExecutableManager
- Workhorse to process the stderr stream of the managed process.
By default
ExecuatbleManager
just sends out the received
error message to the stderr
of itself.
- Overrides:
processError
in class ExecutableManager
- Parameters:
error
- error message from the managed process.
Copyright © 2012 The Apache Software Foundation