From 2b654a493cb88798bc5572b868ee1ffb411a07cb Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Tue, 20 Jun 2017 09:36:55 -0700 Subject: [PATCH] HDFS-11978. Remove invalid '-usage' command of 'ec' and add missing commands 'addPolicies' 'listCodecs' in doc. Contributed by wenxin he. --- .../hadoop-hdfs/src/site/markdown/HDFSCommands.md | 5 ++++- .../hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index be0f89e39f..38bdc40fab 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -444,7 +444,8 @@ Usage: [-getPolicy -path ] [-unsetPolicy -path ] [-listPolicies] - [-usage [cmd ...]] + [-addPolicies -policyFile ] + [-listCodecs] [-help [cmd ...]] | COMMAND\_OPTION | Description | @@ -453,6 +454,8 @@ Usage: |-getPolicy| Get ErasureCoding policy information about a specified path| |-unsetPolicy| Unset an ErasureCoding policy set by a previous call to "setPolicy" on a directory | |-listPolicies| Lists all supported ErasureCoding policies| +|-addPolicies| Add a list of erasure coding policies| +|-listCodecs| Get the list of supported erasure coding codecs and coders in system| Runs the ErasureCoding CLI. See [HDFS ErasureCoding](./HDFSErasureCoding.html#Administrative_commands) for more information on this command. diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md index dcb56f86a6..51f54a21f3 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSErasureCoding.md @@ -156,7 +156,6 @@ Deployment [-listPolicies] [-addPolicies -policyFile ] [-listCodecs] - [-usage [cmd ...]] [-help [cmd ...]] Below are the details about each command. @@ -187,4 +186,4 @@ Below are the details about each command. * `[-listCodecs]` - Get the list of supported erasure coding codecs and coders in system. 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. \ No newline at end of file + Get the list of supported erasure coding codecs and coders in system. 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.