[ 
https://issues.apache.org/jira/browse/HDFS-14975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fei Hui updated HDFS-14975:
---------------------------
    Description: 
*bin/hdfs ec -help* output the following message
{quote}
[-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.

{quote}
The output format is not so good to users
We should add CR between SetECPolicyCommand and UnsetECPolicyCommand like other 
commands
{quote}
[-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.

{quote}


  was:
*bin/hdfs ec -help* output the following message
{quote}
[-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.

{quote}
The output format is not so good to users
We should add CR between SetECPolicyCommand and UnsetECPolicyCommand like other 
commands



> Add CR for SetECPolicyCommand usage
> -----------------------------------
>
>                 Key: HDFS-14975
>                 URL: https://issues.apache.org/jira/browse/HDFS-14975
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.3.0
>            Reporter: Fei Hui
>            Assignee: Fei Hui
>            Priority: Trivial
>         Attachments: HDFS-14975.001.patch
>
>
> *bin/hdfs ec -help* output the following message
> {quote}
> [-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.
> {quote}
> The output format is not so good to users
> We should add CR between SetECPolicyCommand and UnsetECPolicyCommand like 
> other commands
> {quote}
> [-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.
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to