Package | Description |
---|---|
org.apache.hadoop.hdfs.server.blockmanagement |
Modifier and Type | Field and Description |
---|---|
static DatanodeStorageInfo[] |
DatanodeStorageInfo.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
protected DatanodeStorageInfo |
BlockPlacementPolicyWithNodeGroup.chooseLocalRack(org.apache.hadoop.net.Node localMachine,
Set<org.apache.hadoop.net.Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
StorageType storageType) |
protected DatanodeStorageInfo |
BlockPlacementPolicyWithNodeGroup.chooseLocalStorage(org.apache.hadoop.net.Node localMachine,
Set<org.apache.hadoop.net.Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
StorageType storageType)
choose local node of localMachine as the target.
|
DatanodeStorageInfo[] |
BlockInfoUnderConstruction.getExpectedStorageLocations()
Create array of expected replica locations
(as has been assigned by chooseTargets()).
|
Modifier and Type | Method and Description |
---|---|
static void |
DatanodeStorageInfo.incrementBlocksScheduled(DatanodeStorageInfo... storages)
Increment the number of blocks scheduled for each given storage
|
void |
BlockInfoUnderConstruction.setExpectedLocations(DatanodeStorageInfo[] targets)
Set expected locations
|
BlockInfoUnderConstruction |
MutableBlockCollection.setLastBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo lastBlock,
DatanodeStorageInfo[] storages)
Convert the last block of the collection to an under-construction block
and set the locations.
|
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
DatanodeStorageInfo.toDatanodeInfos(DatanodeStorageInfo[] storages) |
static String[] |
DatanodeStorageInfo.toStorageIDs(DatanodeStorageInfo[] storages) |
static StorageType[] |
DatanodeStorageInfo.toStorageTypes(DatanodeStorageInfo[] storages) |
Modifier and Type | Method and Description |
---|---|
protected DatanodeStorageInfo |
BlockPlacementPolicyWithNodeGroup.chooseLocalRack(org.apache.hadoop.net.Node localMachine,
Set<org.apache.hadoop.net.Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
StorageType storageType) |
protected DatanodeStorageInfo |
BlockPlacementPolicyWithNodeGroup.chooseLocalStorage(org.apache.hadoop.net.Node localMachine,
Set<org.apache.hadoop.net.Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
StorageType storageType)
choose local node of localMachine as the target.
|
protected void |
BlockPlacementPolicyWithNodeGroup.chooseRemoteRack(int numOfReplicas,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor localMachine,
Set<org.apache.hadoop.net.Node> excludedNodes,
long blocksize,
int maxReplicasPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
StorageType storageType)
Choose numOfReplicas nodes from the racks
that localMachine is NOT on.
|
Constructor and Description |
---|
BlockInfoUnderConstruction(org.apache.hadoop.hdfs.protocol.Block blk,
int replication,
HdfsServerConstants.BlockUCState state,
DatanodeStorageInfo[] targets)
Create a block that is currently being constructed.
|
Copyright © 2014 Apache Software Foundation. All Rights Reserved.