/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { super.onKernalStop(cancel); if (hctx == null) return; List<HadoopComponent> components = hctx.components(); for (ListIterator<HadoopComponent> it = components.listIterator(components.size()); it.hasPrevious();) { HadoopComponent c = it.previous(); c.onKernalStop(cancel); } }
/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { super.onKernalStop(cancel); busyLock.writeLock(); evtProcSvc.shutdown(); // Fail all pending futures. for (GridFutureAdapter<HadoopJobId> fut : activeFinishFuts.values()) fut.onDone(new IgniteCheckedException("Failed to execute Hadoop map-reduce job (grid is stopping).")); }