Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14975

Add LF for SetECPolicyCommand usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.3.0
    • 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.

      Attachments

        1. HDFS-14975.001.patch
          0.7 kB
          Hui Fei

        Activity

          People

            ferhui Hui Fei
            ferhui Hui Fei
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: