public abstract class HadoopV2Task extends HadoopTask
| Modifier | Constructor and Description |
|---|---|
protected |
HadoopV2Task(HadoopTaskInfo taskInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort(OutputFormat outputFormat)
Abort task.
|
void |
cancel() |
protected void |
closeWriter()
Closes writer.
|
protected void |
commit(OutputFormat outputFormat)
Commit task.
|
protected OutputFormat |
getOutputFormat(JobContext jobCtx)
Create and configure an OutputFormat instance.
|
protected HadoopV2Context |
hadoopContext() |
protected OutputFormat |
prepareWriter(JobContext jobCtx)
Put write into Hadoop context and return associated output format instance.
|
void |
run(HadoopTaskContext taskCtx) |
protected abstract void |
run0(HadoopV2TaskContext taskCtx)
Internal task routine.
|
protected void |
setup(OutputFormat outputFormat)
Setup task.
|
infoprotected HadoopV2Task(HadoopTaskInfo taskInfo)
taskInfo - Task info.public void run(HadoopTaskContext taskCtx) throws IgniteCheckedException
run in class HadoopTaskIgniteCheckedExceptionprotected abstract void run0(HadoopV2TaskContext taskCtx) throws IgniteCheckedException
taskCtx - Task context.IgniteCheckedExceptionprotected HadoopV2Context hadoopContext()
protected OutputFormat getOutputFormat(JobContext jobCtx) throws ClassNotFoundException
jobCtx - Job context.ClassNotFoundException - If specified class not found.protected OutputFormat prepareWriter(JobContext jobCtx) throws IgniteCheckedException, InterruptedException
jobCtx - Job context.IgniteCheckedException - In case of Grid exception.InterruptedException - In case of interrupt.protected void closeWriter()
throws Exception
Exception - If fails and logger hasn't been specified.protected void setup(@Nullable
OutputFormat outputFormat)
throws IOException,
InterruptedException
outputFormat - Output format.IOException - In case of IO exception.InterruptedException - In case of interrupt.protected void commit(@Nullable
OutputFormat outputFormat)
throws IgniteCheckedException,
IOException,
InterruptedException
outputFormat - Output format.IgniteCheckedException - In case of Grid exception.IOException - In case of IO exception.InterruptedException - In case of interrupt.protected void abort(@Nullable
OutputFormat outputFormat)
outputFormat - Output format.public void cancel()
cancel in class HadoopTask
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019