| Package | Description |
|---|---|
| org.apache.hadoop.hdfs | |
| org.apache.hadoop.hdfs.client |
This package provides the administrative APIs for HDFS.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
DFSStripedInputStream |
DFSStripedInputStream reads from striped block groups.
|
| Modifier and Type | Method | Description |
|---|---|---|
DFSInputStream |
DFSClient.open(java.lang.String src) |
|
DFSInputStream |
DFSClient.open(java.lang.String src,
int buffersize,
boolean verifyChecksum) |
Create an input stream that obtains a nodelist from the
namenode, and then reads from all the right places.
|
DFSInputStream |
DFSClient.open(java.lang.String src,
int buffersize,
boolean verifyChecksum,
org.apache.hadoop.fs.FileSystem.Statistics stats) |
Deprecated.
Use
DFSClient.open(String, int, boolean) instead. |
DFSInputStream |
DFSClient.open(HdfsPathHandle fd,
int buffersize,
boolean verifyChecksum) |
Create an input stream from the
HdfsPathHandle if the
constraints encoded from DistributedFileSystem.createPathHandle(FileStatus, Options.HandleOpt...)
are satisfied. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
LocatedBlocksRefresher.addInputStream(DFSInputStream dfsInputStream) |
|
void |
DFSClient.addLocatedBlocksRefresh(DFSInputStream dfsInputStream) |
Adds the
DFSInputStream to the LocatedBlocksRefresher, so that
the underlying LocatedBlocks is periodically refreshed. |
void |
DFSClient.addNodeToDeadNodeDetector(DFSInputStream dfsInputStream,
DatanodeInfo datanodeInfo) |
Add given datanode in DeadNodeDetector.
|
void |
DeadNodeDetector.addNodeToDetect(DFSInputStream dfsInputStream,
DatanodeInfo datanodeInfo) |
Add datanode to suspectNodes and suspectAndDeadNodes.
|
HdfsDataInputStream |
DFSClient.createWrappedInputStream(DFSInputStream dfsis) |
Wraps the stream in a CryptoInputStream if the underlying file is
encrypted.
|
java.util.concurrent.ConcurrentHashMap<DatanodeInfo,DatanodeInfo> |
DFSClient.getDeadNodes(DFSInputStream dfsInputStream) |
If deadNodeDetectionEnabled is true, return the dead nodes that detected by
all the DFSInputStreams in the same client.
|
boolean |
DFSClient.isDeadNode(DFSInputStream dfsInputStream,
DatanodeInfo datanodeInfo) |
If deadNodeDetectionEnabled is true, judgement based on whether this
datanode is included or not in DeadNodeDetector.
|
boolean |
LocatedBlocksRefresher.isInputStreamTracked(DFSInputStream dfsInputStream) |
|
void |
LocatedBlocksRefresher.removeInputStream(DFSInputStream dfsInputStream) |
|
void |
DFSClient.removeLocatedBlocksRefresh(DFSInputStream dfsInputStream) |
Removes the
DFSInputStream from the LocatedBlocksRefresher, so that
the underlying LocatedBlocks is no longer periodically refreshed. |
void |
DeadNodeDetector.removeNodeFromDeadNodeDetector(DFSInputStream dfsInputStream,
DatanodeInfo datanodeInfo) |
Remove suspect and dead node from suspectAndDeadNodes#dfsInputStream and
local deadNodes.
|
void |
DFSClient.removeNodeFromDeadNodeDetector(DFSInputStream dfsInputStream,
DatanodeInfo datanodeInfo) |
Remove given datanode from DeadNodeDetector.
|
void |
DFSClient.removeNodeFromDeadNodeDetector(DFSInputStream dfsInputStream,
LocatedBlocks locatedBlocks) |
Remove datanodes that given block placed on from DeadNodeDetector.
|
| Constructor | Description |
|---|---|
DFSDataInputStream(DFSInputStream in) |
Deprecated.
|
| Constructor | Description |
|---|---|
HdfsDataInputStream(DFSInputStream in) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.