Search in sources :

Example 1 with HadoopTaskOutput

use of org.apache.ignite.internal.processors.hadoop.HadoopTaskOutput in project ignite by apache.

the class HadoopRunnableTask method runTask.

/**
     * @param perfCntr Performance counter.
     * @throws IgniteCheckedException If failed.
     */
private void runTask(HadoopPerformanceCounter perfCntr) throws IgniteCheckedException {
    if (cancelled)
        throw new HadoopTaskCancelledException("Task cancelled.");
    try (HadoopTaskOutput out = createOutputInternal(ctx);
        HadoopTaskInput in = createInputInternal(ctx)) {
        ctx.input(in);
        ctx.output(out);
        perfCntr.onTaskStart(ctx.taskInfo(), U.currentTimeMillis());
        ctx.run();
    }
}
Also used : HadoopTaskInput(org.apache.ignite.internal.processors.hadoop.HadoopTaskInput) HadoopTaskCancelledException(org.apache.ignite.internal.processors.hadoop.HadoopTaskCancelledException) HadoopTaskOutput(org.apache.ignite.internal.processors.hadoop.HadoopTaskOutput)

Aggregations

HadoopTaskCancelledException (org.apache.ignite.internal.processors.hadoop.HadoopTaskCancelledException)1 HadoopTaskInput (org.apache.ignite.internal.processors.hadoop.HadoopTaskInput)1 HadoopTaskOutput (org.apache.ignite.internal.processors.hadoop.HadoopTaskOutput)1