Package | Description |
---|---|
org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem . |
org.apache.hadoop.hdfs.server.blockmanagement | |
org.apache.hadoop.hdfs.server.datanode.fsdataset | |
org.apache.hadoop.hdfs.server.protocol |
Modifier and Type | Field and Description |
---|---|
static StorageType |
StorageType.DEFAULT |
Modifier and Type | Method and Description |
---|---|
static StorageType |
StorageType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StorageType[] |
StorageType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
StorageType |
FsVolumeSpi.getStorageType() |
Modifier and Type | Method and Description |
---|---|
StorageType |
DatanodeStorage.getStorageType() |
Constructor and Description |
---|
DatanodeStorage(String sid,
DatanodeStorage.State s,
StorageType sm) |
Copyright © 2014 Apache Software Foundation. All Rights Reserved.