java.lang.Runnablepublic class DirectShuffleFetcher<K,V>
extends java.lang.Thread
| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.fs.FileSystem |
rfs |
| Constructor | Description |
|---|---|
DirectShuffleFetcher(int id,
org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapreduce.TaskAttemptID reduceId,
DirectShuffleSchedulerImpl<K,V> scheduler,
org.apache.hadoop.mapreduce.task.reduce.MergeManager<K,V> merger,
org.apache.hadoop.mapred.Reporter reporter,
org.apache.hadoop.mapreduce.task.reduce.ShuffleClientMetrics metrics,
org.apache.hadoop.mapreduce.task.reduce.ExceptionReporter exceptionReporter,
org.apache.hadoop.mapred.MapOutputFile mapOutputFile) |
Represents the result of an attempt to copy a map output
|
| Modifier and Type | Method | Description |
|---|---|---|
protected long |
copyOutput(MapOutputLocation loc) |
Copies a a map output from a remote host.
|
boolean |
fail() |
Fail the current file that we are fetching
|
MapOutputLocation |
getLocation() |
Get the current map output location.
|
void |
run() |
Loop forever and fetch map outputs as they become available.
|
void |
shutDown() |
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yieldpublic DirectShuffleFetcher(int id,
org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapreduce.TaskAttemptID reduceId,
DirectShuffleSchedulerImpl<K,V> scheduler,
org.apache.hadoop.mapreduce.task.reduce.MergeManager<K,V> merger,
org.apache.hadoop.mapred.Reporter reporter,
org.apache.hadoop.mapreduce.task.reduce.ShuffleClientMetrics metrics,
org.apache.hadoop.mapreduce.task.reduce.ExceptionReporter exceptionReporter,
org.apache.hadoop.mapred.MapOutputFile mapOutputFile)
public boolean fail()
public MapOutputLocation getLocation()
public void shutDown()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread@VisibleForTesting protected long copyOutput(MapOutputLocation loc) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException - if there is an error copying the filejava.lang.InterruptedException - if the copier should give upCopyright © 2008–2025 Apache Software Foundation. All rights reserved.