Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.3.0
-
None
-
None
-
Reviewed
Description
bin/hdfs ec -help output the following message
[-listPolicies]
Get the list of all erasure coding policies.
[-addPolicies -policyFile <file>]
Add a list of user defined erasure coding policies.
<file> The path of the xml file which defines the EC policies to add[-getPolicy -path <path>]
Get the erasure coding policy of a file/directory.
<path> The path of the file/directory for getting the erasure coding policy
[-removePolicy -policy <policy>]
Remove an user defined erasure coding policy.
<policy> The name of the erasure coding policy[-setPolicy -path <path> [-policy <policy>] [-replicate]]
Set the erasure coding policy for a file/directory.
<path> The path of the file/directory to set the erasure coding policy
<policy> The name of the erasure coding policy
-replicate force 3x replication scheme on the directory-replicate and -policy are optional arguments. They cannot been used at the same time
[-unsetPolicy -path <path>]Unset the erasure coding policy for a directory.
<path> The path of the directory from which the erasure coding policy will be
unset.[-listCodecs]
Get the list of supported erasure coding codecs and coders.
A coder is an implementation of a codec. A codec can have different implementations, thus different coders.
The coders for a codec are listed in a fall back order.[-enablePolicy -policy <policy>]
Enable the erasure coding policy.
<policy> The name of the erasure coding policy
[-disablePolicy -policy <policy>]
Disable the erasure coding policy.
<policy> The name of the erasure coding policy
[-verifyClusterSetup [-policy <policy>...<policy>]]
Verify if the cluster setup can support all enabled erasure coding policies. If optional parameter -policy is specified, verify if the cluster setup can support the given policy.
The output format is not so good to users
We should add CR between SetECPolicyCommand and UnsetECPolicyCommand like other commands
[-setPolicy -path <path> [-policy <policy>] [-replicate]]
Set the erasure coding policy for a file/directory.
<path> The path of the file/directory to set the erasure coding policy
<policy> The name of the erasure coding policy
-replicate force 3x replication scheme on the directory-replicate and -policy are optional arguments. They cannot been used at the same time
----------------here------------
[-unsetPolicy -path <path>]Unset the erasure coding policy for a directory.
<path> The path of the directory from which the erasure coding policy will be
unset.