public abstract class GridHadoopV2Task
extends org.gridgain.grid.hadoop.GridHadoopTask
| Modifier | Constructor and Description |
|---|---|
protected |
GridHadoopV2Task(org.gridgain.grid.hadoop.GridHadoopTaskInfo taskInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort(org.apache.hadoop.mapreduce.OutputFormat outputFormat)
Abort task.
|
void |
cancel() |
protected void |
closeWriter()
Close writer.
|
protected void |
commit(org.apache.hadoop.mapreduce.OutputFormat outputFormat)
Commit task.
|
protected org.apache.hadoop.mapreduce.OutputFormat |
getOutputFormat(org.apache.hadoop.mapreduce.JobContext jobCtx)
Create and configure an OutputFormat instance.
|
protected GridHadoopV2Context |
hadoopContext() |
protected org.apache.hadoop.mapreduce.OutputFormat |
prepareWriter(org.apache.hadoop.mapreduce.JobContext jobCtx)
Put write into Hadoop context and return associated output format instance.
|
void |
run(org.gridgain.grid.hadoop.GridHadoopTaskContext taskCtx) |
protected abstract void |
run0(GridHadoopV2Job job,
org.apache.hadoop.mapreduce.JobContext jobCtx,
org.gridgain.grid.hadoop.GridHadoopTaskContext taskCtx)
Internal task routine.
|
protected void |
setup(org.apache.hadoop.mapreduce.OutputFormat outputFormat)
Setup task.
|
protected GridHadoopV2Task(org.gridgain.grid.hadoop.GridHadoopTaskInfo taskInfo)
taskInfo - Task info.public void run(org.gridgain.grid.hadoop.GridHadoopTaskContext taskCtx)
throws org.gridgain.grid.GridException
run in class org.gridgain.grid.hadoop.GridHadoopTaskorg.gridgain.grid.GridExceptionprotected abstract void run0(GridHadoopV2Job job, org.apache.hadoop.mapreduce.JobContext jobCtx, org.gridgain.grid.hadoop.GridHadoopTaskContext taskCtx) throws org.gridgain.grid.GridException
job - Job.jobCtx - Job context.taskCtx - Task context.org.gridgain.grid.GridExceptionprotected GridHadoopV2Context hadoopContext()
protected org.apache.hadoop.mapreduce.OutputFormat getOutputFormat(org.apache.hadoop.mapreduce.JobContext jobCtx)
throws ClassNotFoundException
jobCtx - Job context.ClassNotFoundException - If specified class not found.protected org.apache.hadoop.mapreduce.OutputFormat prepareWriter(org.apache.hadoop.mapreduce.JobContext jobCtx)
throws org.gridgain.grid.GridException,
InterruptedException
jobCtx - Job context.org.gridgain.grid.GridException - In case of Grid exception.InterruptedException - In case of interrupt.protected void closeWriter()
throws IOException,
InterruptedException
IOException - In case of IO exception.InterruptedException - In case of interrupt.protected void setup(@Nullable
org.apache.hadoop.mapreduce.OutputFormat outputFormat)
throws IOException,
InterruptedException
outputFormat - Output format.IOException - In case of IO exception.InterruptedException - In case of interrupt.protected void commit(@Nullable
org.apache.hadoop.mapreduce.OutputFormat outputFormat)
throws org.gridgain.grid.GridException,
IOException,
InterruptedException
outputFormat - Output format.org.gridgain.grid.GridException - In case of Grid exception.IOException - In case of IO exception.InterruptedException - In case of interrupt.protected void abort(@Nullable
org.apache.hadoop.mapreduce.OutputFormat outputFormat)
outputFormat - Output format.public void cancel()
cancel in class org.gridgain.grid.hadoop.GridHadoopTaskCopyright © 2014. All rights reserved.