From 32b70d3b81a231c2373d85a3ff560d27c026061a Mon Sep 17 00:00:00 2001 From: wenxin he Date: Thu, 15 Jun 2017 15:24:12 +0800 Subject: [PATCH] HDFS-11978. Remove invalid '-usage' command of 'ec' and add missing commands 'addPolicies' 'listCodecs' --- .../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 ffffee9d3a6e1..90a8287b7a093 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -442,7 +442,8 @@ Usage: [-getPolicy -path ] [-unsetPolicy -path ] [-listPolicies] - [-usage [cmd ...]] + [-addPolicies -policyFile ] + [-listCodecs] [-help [cmd ...]] | COMMAND\_OPTION | Description | @@ -451,6 +452,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 dcb56f86a6b12..51f54a21f382e 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.