| 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(Node localMachine,
Set<Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
EnumMap<StorageType,Integer> storageTypes) |
protected DatanodeStorageInfo |
BlockPlacementPolicyWithNodeGroup.chooseLocalStorage(Node localMachine,
Set<Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
EnumMap<StorageType,Integer> storageTypes,
boolean fallbackToLocalRack)
choose local node of localMachine as the target.
|
DatanodeStorageInfo[] |
BlockInfoContiguousUnderConstruction.getExpectedStorageLocations()
Create array of expected replica locations
(as has been assigned by chooseTargets()).
|
| Modifier and Type | Method and Description |
|---|---|
Collection<DatanodeStorageInfo> |
BlockPlacementPolicyWithNodeGroup.pickupReplicaSet(Collection<DatanodeStorageInfo> first,
Collection<DatanodeStorageInfo> second,
Map<String,List<DatanodeStorageInfo>> rackMap)
Pick up replica node set for deleting replica as over-replicated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
DatanodeStorageInfo.incrementBlocksScheduled(DatanodeStorageInfo... storages)
Increment the number of blocks scheduled for each given storage
|
void |
BlockInfoContiguousUnderConstruction.setExpectedLocations(DatanodeStorageInfo[] targets)
Set expected 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(Node localMachine,
Set<Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
EnumMap<StorageType,Integer> storageTypes) |
protected DatanodeStorageInfo |
BlockPlacementPolicyWithNodeGroup.chooseLocalStorage(Node localMachine,
Set<Node> excludedNodes,
long blocksize,
int maxNodesPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
EnumMap<StorageType,Integer> storageTypes,
boolean fallbackToLocalRack)
choose local node of localMachine as the target.
|
protected void |
BlockPlacementPolicyWithNodeGroup.chooseRemoteRack(int numOfReplicas,
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor localMachine,
Set<Node> excludedNodes,
long blocksize,
int maxReplicasPerRack,
List<DatanodeStorageInfo> results,
boolean avoidStaleNodes,
EnumMap<StorageType,Integer> storageTypes)
Choose numOfReplicas nodes from the racks
that localMachine is NOT on.
|
Collection<DatanodeStorageInfo> |
BlockPlacementPolicyWithNodeGroup.pickupReplicaSet(Collection<DatanodeStorageInfo> first,
Collection<DatanodeStorageInfo> second,
Map<String,List<DatanodeStorageInfo>> rackMap)
Pick up replica node set for deleting replica as over-replicated.
|
Collection<DatanodeStorageInfo> |
BlockPlacementPolicyWithNodeGroup.pickupReplicaSet(Collection<DatanodeStorageInfo> first,
Collection<DatanodeStorageInfo> second,
Map<String,List<DatanodeStorageInfo>> rackMap)
Pick up replica node set for deleting replica as over-replicated.
|
Collection<DatanodeStorageInfo> |
BlockPlacementPolicyWithNodeGroup.pickupReplicaSet(Collection<DatanodeStorageInfo> first,
Collection<DatanodeStorageInfo> second,
Map<String,List<DatanodeStorageInfo>> rackMap)
Pick up replica node set for deleting replica as over-replicated.
|
| Constructor and Description |
|---|
BlockInfoContiguousUnderConstruction(org.apache.hadoop.hdfs.protocol.Block blk,
short replication,
HdfsServerConstants.BlockUCState state,
DatanodeStorageInfo[] targets)
Create a block that is currently being constructed.
|
Copyright © 2018 CERN. All Rights Reserved.