Class ECTopologyVerifier
java.lang.Object
org.apache.hadoop.hdfs.server.common.ECTopologyVerifier
Class for verifying whether the cluster setup can support
all enabled EC policies.
Scenarios when the verification fails:
1. not enough data nodes compared to EC policy's highest data+parity number
2. not enough racks to satisfy BlockPlacementPolicyRackFaultTolerant
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hdfs.protocol.ECTopologyVerifierResultgetECTopologyVerifierResult(int numOfRacks, int numOfDataNodes, Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy> policies) Verifies whether the cluster setup can support all enabled EC policies.static org.apache.hadoop.hdfs.protocol.ECTopologyVerifierResultgetECTopologyVerifierResult(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] report, Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy> policies) Verifies whether the cluster setup can support the given EC policies.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Method Details
-
getECTopologyVerifierResult
public static org.apache.hadoop.hdfs.protocol.ECTopologyVerifierResult getECTopologyVerifierResult(org.apache.hadoop.hdfs.protocol.DatanodeInfo[] report, Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy> policies) Verifies whether the cluster setup can support the given EC policies.- Parameters:
report- list of data node descriptors for all data nodespolicies- erasure coding policies to verify- Returns:
- the status of the verification
-
getECTopologyVerifierResult
public static org.apache.hadoop.hdfs.protocol.ECTopologyVerifierResult getECTopologyVerifierResult(int numOfRacks, int numOfDataNodes, Collection<org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy> policies) Verifies whether the cluster setup can support all enabled EC policies.- Parameters:
numOfRacks- number of racksnumOfDataNodes- number of data nodespolicies- erasure coding policies to verify- Returns:
- the status of the verification
-