public static interface HadoopShims.HdfsErasureCodingShim
| Modifier and Type | Method and Description |
|---|---|
void |
disableErasureCodingPolicy(String ecPolicyName)
Disable an erasure coding policy.
|
void |
enableErasureCodingPolicy(String ecPolicyName)
Enable an erasure coding policy.
|
List<HadoopShims.HdfsFileErasureCodingPolicy> |
getAllErasureCodingPolicies()
Lists all (enabled, disabled and removed) erasure coding policies registered in HDFS.
|
HadoopShims.HdfsFileErasureCodingPolicy |
getErasureCodingPolicy(org.apache.hadoop.fs.Path path)
Get details of the erasure coding policy of a file or directory at the specified path.
|
boolean |
isMapReduceStatAvailable() |
void |
removeErasureCodingPolicy(String ecPolicyName)
Remove an erasure coding policy.
|
void |
setErasureCodingPolicy(org.apache.hadoop.fs.Path path,
String ecPolicyName)
Sets an erasure coding policy on a directory at the specified path.
|
void |
unsetErasureCodingPolicy(org.apache.hadoop.fs.Path path)
Unset an erasure coding policy set by a previous call to setPolicy on a directory.
|
List<HadoopShims.HdfsFileErasureCodingPolicy> getAllErasureCodingPolicies() throws IOException
IOExceptionvoid enableErasureCodingPolicy(String ecPolicyName) throws IOException
ecPolicyName - the name of the erasure coding policyIOExceptionvoid setErasureCodingPolicy(org.apache.hadoop.fs.Path path,
String ecPolicyName)
throws IOException
path - a directory in HDFSecPolicyName - the name of the erasure coding policyIOExceptionHadoopShims.HdfsFileErasureCodingPolicy getErasureCodingPolicy(org.apache.hadoop.fs.Path path) throws IOException
path - an hdfs file or directoryIOExceptionvoid unsetErasureCodingPolicy(org.apache.hadoop.fs.Path path)
throws IOException
path - a directory in HDFSIOExceptionvoid removeErasureCodingPolicy(String ecPolicyName) throws IOException
ecPolicyName - the name of the erasure coding policyIOExceptionvoid disableErasureCodingPolicy(String ecPolicyName) throws IOException
ecPolicyName - the name of the erasure coding policyIOExceptionboolean isMapReduceStatAvailable()
Copyright © 2024 The Apache Software Foundation. All rights reserved.