public class MultiStagedJob extends Object
| Constructor and Description |
|---|
MultiStagedJob(org.apache.hadoop.fs.Path[] initialInput,
org.apache.hadoop.fs.Path root,
boolean removePreliminary,
String[] args)
Start a multistaged job specification.
|
MultiStagedJob(org.apache.hadoop.fs.Path[] initialInput,
org.apache.hadoop.fs.Path root,
String[] args)
Start a multistaged job specification.
|
MultiStagedJob(String inpath,
String outpath,
String[] args)
Conveniance function.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path[] |
getStagePaths(String completedJobId) |
void |
queueStage(Stage<?,?,?,?,?,?,?,?> s)
Add a stage to the end of the queue of stages.
|
void |
removeIntermediate(boolean b) |
org.apache.hadoop.fs.Path |
runAll()
Run all the staged jobs.
|
public MultiStagedJob(org.apache.hadoop.fs.Path[] initialInput, org.apache.hadoop.fs.Path root, String[] args)
initialInput - the initial input given to the first stageroot - the final output locationargs - the arguments with which to start the jobpublic MultiStagedJob(org.apache.hadoop.fs.Path[] initialInput, org.apache.hadoop.fs.Path root, boolean removePreliminary, String[] args)
initialInput - the initial input given to the first stageremovePreliminary - whether all intermediate steps should be removedroot - the final output locationargs - the arguments with which to start the jobpublic MultiStagedJob(String inpath, String outpath, String[] args) throws IOException
inpath - outpath - args - the arguments with which to start the jobIOExceptionpublic void queueStage(Stage<?,?,?,?,?,?,?,?> s)
s - public org.apache.hadoop.fs.Path runAll() throws Exception
Exceptionpublic org.apache.hadoop.fs.Path[] getStagePaths(String completedJobId)
completedJobId - public void removeIntermediate(boolean b)
b - if true all but the final output and input for this multi staged job are true