public class HadoopShuffleJob<T> extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
class |
HadoopShuffleJob.PartitionedOutput
Partitioned output.
|
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<Long,IgniteBiTuple<HadoopShuffleMessage,GridFutureAdapter<?>>> |
sentMsgs |
| Constructor and Description |
|---|
HadoopShuffleJob(T locReduceAddr,
IgniteLogger log,
HadoopJobEx job,
GridUnsafeMemory mem,
int totalReducerCnt,
int[] locReducers,
int locMappersCnt,
boolean embedded) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IgniteInternalFuture<?> |
flush() |
boolean |
initializeReduceAddresses(T[] reduceAddrs) |
HadoopTaskInput |
input(HadoopTaskContext taskCtx) |
void |
onDirectShuffleMessage(T src,
HadoopDirectShuffleMessage msg)
Process shuffle message.
|
void |
onShuffleAck(HadoopShuffleAck ack) |
void |
onShuffleFinishRequest(T src,
HadoopShuffleFinishRequest msg)
Process shuffle finish request.
|
void |
onShuffleFinishResponse(T src)
Process shuffle finish response.
|
void |
onShuffleMessage(T src,
HadoopShuffleMessage msg) |
HadoopTaskOutput |
output(HadoopTaskContext taskCtx) |
boolean |
reducersInitialized() |
void |
startSending(String igniteInstanceName,
IgniteInClosure2X<T,HadoopMessage> io) |
protected ConcurrentMap<Long,IgniteBiTuple<HadoopShuffleMessage,GridFutureAdapter<?>>> sentMsgs
public HadoopShuffleJob(T locReduceAddr, IgniteLogger log, HadoopJobEx job, GridUnsafeMemory mem, int totalReducerCnt, int[] locReducers, int locMappersCnt, boolean embedded) throws IgniteCheckedException
locReduceAddr - Local reducer address.log - Logger.job - Job.mem - Memory.totalReducerCnt - Amount of reducers in the Job.locReducers - Reducers will work on current node.locMappersCnt - Number of mappers running on the given node.embedded - Whether shuffle is running in embedded mode.IgniteCheckedException - If error.public boolean initializeReduceAddresses(T[] reduceAddrs)
reduceAddrs - Addresses of reducers.True if addresses were initialized by this call.public boolean reducersInitialized()
True if reducers addresses were initialized.public void startSending(String igniteInstanceName, IgniteInClosure2X<T,HadoopMessage> io)
igniteInstanceName - Ignite instance name.io - IO Closure for sending messages.public void onShuffleMessage(T src, HadoopShuffleMessage msg) throws IgniteCheckedException
src - Source.msg - Message.IgniteCheckedException - Exception.public void onDirectShuffleMessage(T src, HadoopDirectShuffleMessage msg) throws IgniteCheckedException
src - Source.msg - Message.IgniteCheckedException - Exception.public void onShuffleAck(HadoopShuffleAck ack)
ack - Shuffle ack.public void onShuffleFinishRequest(T src, HadoopShuffleFinishRequest msg)
src - Source.msg - Shuffle finish message.public void onShuffleFinishResponse(T src)
src - Source.public void close()
throws IgniteCheckedException
close in interface AutoCloseableIgniteCheckedExceptionpublic IgniteInternalFuture<?> flush() throws IgniteCheckedException
IgniteCheckedExceptionpublic HadoopTaskOutput output(HadoopTaskContext taskCtx) throws IgniteCheckedException
taskCtx - Task context.IgniteCheckedException - If failed.public HadoopTaskInput input(HadoopTaskContext taskCtx) throws IgniteCheckedException
taskCtx - Task context.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019