程序包 | 说明 |
---|---|
org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem . |
org.apache.hadoop.hdfs.protocol | |
org.apache.hadoop.hdfs.server.datanode | |
org.apache.hadoop.hdfs.server.namenode | |
org.apache.hadoop.hdfs.server.protocol |
限定符和类型 | 方法和说明 |
---|---|
void |
DFSClient.reportBadBlocks(LocatedBlock[] blocks)
Report corrupt blocks that were discovered by the client.
|
限定符和类型 | 方法和说明 |
---|---|
LocatedBlock |
ClientProtocol.addBlock(String src,
String clientName)
已过时。
use the 3-arg form below
|
LocatedBlock |
ClientProtocol.addBlock(String src,
String clientName,
DatanodeInfo[] excludedNodes)
A client that wants to write an additional block to the
indicated filename (which must currently be open for writing)
should call addBlock().
|
LocatedBlock |
ClientProtocol.append(String src,
String clientName)
Append to the end of the file.
|
LocatedBlock |
LocatedBlocks.get(int index)
Get located block.
|
LocatedBlock |
ClientDatanodeProtocol.recoverBlock(Block block,
boolean keepLength,
DatanodeInfo[] targets)
Start generation-stamp recovery for specified block
|
限定符和类型 | 方法和说明 |
---|---|
List<LocatedBlock> |
LocatedBlocks.getLocatedBlocks()
Get located blocks.
|
限定符和类型 | 方法和说明 |
---|---|
void |
ClientProtocol.reportBadBlocks(LocatedBlock[] blocks)
The client wants to report corrupted blocks (blocks with specified
locations on datanodes).
|
限定符和类型 | 方法和说明 |
---|---|
void |
LocatedBlocks.insertRange(int blockIdx,
List<LocatedBlock> newBlocks) |
构造器和说明 |
---|
LocatedBlocks(long flength,
List<LocatedBlock> blks,
boolean isUnderConstuction) |
限定符和类型 | 方法和说明 |
---|---|
LocatedBlock |
DataNode.recoverBlock(Block block,
boolean keepLength,
DatanodeInfo[] targets)
Start generation-stamp recovery for specified block
|
限定符和类型 | 方法和说明 |
---|---|
LocatedBlock |
NameNode.addBlock(String src,
String clientName)
Stub for 0.20 clients that don't support HDFS-630
|
LocatedBlock |
NameNode.addBlock(String src,
String clientName,
DatanodeInfo[] excludedNodes) |
LocatedBlock |
NameNode.append(String src,
String clientName)
Append to the end of the file.
|
LocatedBlock |
FSNamesystem.getAdditionalBlock(String src,
String clientName)
Stub for old callers pre-HDFS-630
|
LocatedBlock |
FSNamesystem.getAdditionalBlock(String src,
String clientName,
HashMap<Node,Node> excludedNodes)
The client would like to obtain an additional block for the indicated
filename (which is being written-to).
|
限定符和类型 | 方法和说明 |
---|---|
static DatanodeInfo |
JspHelper.bestNode(LocatedBlock blk) |
void |
NameNode.reportBadBlocks(LocatedBlock[] blocks)
The client has detected an error on the specified located blocks
and is reporting them to the server.
|
int |
BlockPlacementPolicyDefault.verifyBlockPlacement(String srcPath,
LocatedBlock lBlk,
int minRacks)
Verify that the block is replicated on at least minRacks different racks
if there is more than minRacks rack in the system.
|
abstract int |
BlockPlacementPolicy.verifyBlockPlacement(String srcPath,
LocatedBlock lBlk,
int minRacks)
Verify that the block is replicated on at least minRacks different racks
if there is more than minRacks rack in the system.
|
限定符和类型 | 方法和说明 |
---|---|
void |
DatanodeProtocol.reportBadBlocks(LocatedBlock[] blocks)
|
Copyright © 2009 The Apache Software Foundation