Package org.apache.hadoop.hdfs
Class DFSUtilClient.CorruptedBlocks
java.lang.Object
org.apache.hadoop.hdfs.DFSUtilClient.CorruptedBlocks
- Enclosing class:
- DFSUtilClient
A utility class as a container to put corrupted blocks, shared by client
and datanode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCorruptedBlock(ExtendedBlock blk, DatanodeInfo node) Indicate a block replica on the specified datanode is corrupted
-
Constructor Details
-
CorruptedBlocks
public CorruptedBlocks()
-
-
Method Details
-
addCorruptedBlock
Indicate a block replica on the specified datanode is corrupted -
getCorruptionMap
- Returns:
- the map that contains all the corruption entries, or null if there were no corrupted entries
-