java.lang.Runnable@Private
public class StripedDataStreamer
extends org.apache.hadoop.util.Daemon
DataStreamer to support writing striped blocks
to datanodes.
A DFSStripedOutputStream has multiple StripedDataStreamers.
Whenever the streamers need to talk the namenode, only the fastest streamer
sends an rpc call to the namenode and then populates the result for the
other streamers.| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.security.token.Token<BlockTokenIdentifier> |
accessToken |
|
protected org.apache.hadoop.hdfs.DataStreamer.BlockToWrite |
block |
|
protected long |
bytesSent |
|
protected java.util.LinkedList<DFSPacket> |
dataQueue |
|
protected DFSClient |
dfsClient |
|
protected org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache<DatanodeInfo,DatanodeInfo> |
excludedNodes |
|
protected java.lang.String |
src |
|
protected HdfsFileStatus |
stat |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
endBlock() |
|
void |
run() |
|
protected void |
setPipeline(DatanodeInfo[] newNodes,
org.apache.hadoop.fs.StorageType[] newStorageTypes,
java.lang.String[] newStorageIDs) |
|
protected void |
setPipeline(LocatedBlock lb) |
|
protected void |
setupPipelineForCreate() |
Open a DataStreamer to a DataNode so that it can be written to.
|
protected boolean |
setupPipelineInternal(DatanodeInfo[] nodes,
org.apache.hadoop.fs.StorageType[] nodeStorageTypes,
java.lang.String[] nodeStorageIDs) |
|
java.lang.String |
toString() |
|
void |
updatePipeline(long newGS) |
update pipeline at the namenode
|
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, yieldprotected final org.apache.hadoop.hdfs.DataStreamer.BlockToWrite block
protected org.apache.hadoop.security.token.Token<BlockTokenIdentifier> accessToken
protected long bytesSent
protected final DFSClient dfsClient
protected final java.lang.String src
protected final HdfsFileStatus stat
protected final java.util.LinkedList<DFSPacket> dataQueue
protected final org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache<DatanodeInfo,DatanodeInfo> excludedNodes
protected void endBlock()
protected void setupPipelineForCreate()
throws java.io.IOException
java.io.IOExceptionprotected boolean setupPipelineInternal(DatanodeInfo[] nodes, org.apache.hadoop.fs.StorageType[] nodeStorageTypes, java.lang.String[] nodeStorageIDs) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
protected void setPipeline(LocatedBlock lb)
protected void setPipeline(DatanodeInfo[] newNodes, org.apache.hadoop.fs.StorageType[] newStorageTypes, java.lang.String[] newStorageIDs)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread@VisibleForTesting
public void updatePipeline(long newGS)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.