use of org.apache.ignite.internal.processors.hadoop.taskexecutor.HadoopEmbeddedTaskExecutor in project ignite by apache.
the class HadoopProcessor method start.
/** {@inheritDoc} */
@Override
public void start(boolean activeOnStart) throws IgniteCheckedException {
if (ctx.isDaemon())
return;
HadoopConfiguration cfg = ctx.config().getHadoopConfiguration();
if (cfg == null)
cfg = new HadoopConfiguration();
else
cfg = new HadoopConfiguration(cfg);
initializeDefaults(cfg);
hctx = new HadoopContext(ctx, cfg, new HadoopJobTracker(), new HadoopEmbeddedTaskExecutor(), //cfg.isExternalExecution() ? new HadoopExternalTaskExecutor() : new HadoopEmbeddedTaskExecutor(),
new HadoopShuffle());
for (HadoopComponent c : hctx.components()) c.start(hctx);
hadoop = new HadoopImpl(this);
ctx.addNodeAttribute(HadoopAttributes.NAME, new HadoopAttributes(cfg));
}
Aggregations