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
IOException
void enableErasureCodingPolicy(String ecPolicyName) throws IOException
ecPolicyName
- the name of the erasure coding policyIOException
void setErasureCodingPolicy(org.apache.hadoop.fs.Path path, String ecPolicyName) throws IOException
path
- a directory in HDFSecPolicyName
- the name of the erasure coding policyIOException
HadoopShims.HdfsFileErasureCodingPolicy getErasureCodingPolicy(org.apache.hadoop.fs.Path path) throws IOException
path
- an hdfs file or directoryIOException
void unsetErasureCodingPolicy(org.apache.hadoop.fs.Path path) throws IOException
path
- a directory in HDFSIOException
void removeErasureCodingPolicy(String ecPolicyName) throws IOException
ecPolicyName
- the name of the erasure coding policyIOException
void disableErasureCodingPolicy(String ecPolicyName) throws IOException
ecPolicyName
- the name of the erasure coding policyIOException
boolean isMapReduceStatAvailable()
Copyright © 2022 The Apache Software Foundation. All rights reserved.