T - The type of the input split (must extend ExternalProcessInputSplit)public abstract class ExternalProcessInputFormat<T extends ExternalProcessInputSplit> extends GenericInputFormat
ExternalProcessInputSplit objects that hold the command to execute.
Attention! | Modifier and Type | Field and Description |
|---|---|
protected int[] |
allowedExitCodes
Array of allowed exit codes
|
static String |
ALLOWEDEXITCODES_PARAMETER_KEY
The config parameter lists (comma separated) all allowed exit codes
|
protected InputStream |
extProcErrStream
The stderr stream of the external process
|
protected InputStream |
extProcOutStream
The stdout stream of the external process
|
partitionNumber| Constructor and Description |
|---|
ExternalProcessInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Configuration parameters) |
void |
open(GenericInputSplit split) |
void |
waitForProcessToFinish() |
createInputSplits, getInputSplitAssigner, getStatisticsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextRecord, reachedEndpublic static final String ALLOWEDEXITCODES_PARAMETER_KEY
protected InputStream extProcOutStream
protected InputStream extProcErrStream
protected int[] allowedExitCodes
public void configure(Configuration parameters)
configure in interface InputFormat<Record,GenericInputSplit>configure in class GenericInputFormat<Record>public void close()
throws IOException
close in interface InputFormat<Record,GenericInputSplit>close in class GenericInputFormat<Record>IOExceptionpublic void open(GenericInputSplit split) throws IOException
open in interface InputFormat<Record,GenericInputSplit>open in class GenericInputFormat<Record>IOExceptionpublic void waitForProcessToFinish()
throws InterruptedException
InterruptedExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.