HDFS-11405. Rename "erasurecode" CLI subcommand to "ec". Contributed by Manoj Govindassamy.

This commit is contained in:
Andrew Wang 2017-02-21 13:55:27 -08:00
parent 924def7854
commit fc9ad3ce3a
5 changed files with 8 additions and 8 deletions

View File

@ -41,7 +41,7 @@ function hadoop_usage
hadoop_add_subcommand "dfsadmin" "run a DFS admin client" hadoop_add_subcommand "dfsadmin" "run a DFS admin client"
hadoop_add_subcommand "diskbalancer" "Distributes data evenly among disks on a given node" hadoop_add_subcommand "diskbalancer" "Distributes data evenly among disks on a given node"
hadoop_add_subcommand "envvars" "display computed Hadoop environment variables" hadoop_add_subcommand "envvars" "display computed Hadoop environment variables"
hadoop_add_subcommand "erasurecode" "run a HDFS ErasureCoding CLI" hadoop_add_subcommand "ec" "run a HDFS ErasureCoding CLI"
hadoop_add_subcommand "fetchdt" "fetch a delegation token from the NameNode" hadoop_add_subcommand "fetchdt" "fetch a delegation token from the NameNode"
hadoop_add_subcommand "fsck" "run a DFS filesystem checking utility" hadoop_add_subcommand "fsck" "run a DFS filesystem checking utility"
hadoop_add_subcommand "getconf" "get config values from configuration" hadoop_add_subcommand "getconf" "get config values from configuration"
@ -129,7 +129,7 @@ function hdfscmd_case
echo "HADOOP_TOOLS_LIB_JARS_DIR='${HADOOP_TOOLS_LIB_JARS_DIR}'" echo "HADOOP_TOOLS_LIB_JARS_DIR='${HADOOP_TOOLS_LIB_JARS_DIR}'"
exit 0 exit 0
;; ;;
erasurecode) ec)
HADOOP_CLASSNAME=org.apache.hadoop.hdfs.tools.erasurecode.ECCli HADOOP_CLASSNAME=org.apache.hadoop.hdfs.tools.erasurecode.ECCli
;; ;;
fetchdt) fetchdt)

View File

@ -32,7 +32,7 @@ import java.io.IOException;
public class ECCli extends FsShell { public class ECCli extends FsShell {
private final static String usagePrefix = private final static String usagePrefix =
"Usage: hdfs erasurecode [generic options]"; "Usage: hdfs ec [generic options]";
@Override @Override
protected String getUsagePrefix() { protected String getUsagePrefix() {

View File

@ -431,11 +431,11 @@ Usage:
Runs the diskbalancer CLI. See [HDFS Diskbalancer](./HDFSDiskbalancer.html) for more information on this command. Runs the diskbalancer CLI. See [HDFS Diskbalancer](./HDFSDiskbalancer.html) for more information on this command.
### `erasurecode` ### `ec`
Usage: Usage:
hdfs erasurecode [generic options] hdfs ec [generic options]
[-setPolicy [-p <policyName>] <path>] [-setPolicy [-p <policyName>] <path>]
[-getPolicy <path>] [-getPolicy <path>]
[-listPolicies] [-listPolicies]

View File

@ -116,9 +116,9 @@ Deployment
### Administrative commands ### Administrative commands
HDFS provides an `erasurecode` subcommand to perform administrative commands related to erasure coding. HDFS provides an `ec` subcommand to perform administrative commands related to erasure coding.
hdfs erasurecode [generic options] hdfs ec [generic options]
[-setPolicy [-p <policyName>] <path>] [-setPolicy [-p <policyName>] <path>]
[-getPolicy <path>] [-getPolicy <path>]
[-unsetPolicy <path>] [-unsetPolicy <path>]

View File

@ -58,7 +58,7 @@
<comparators> <comparators>
<comparator> <comparator>
<type>SubstringComparator</type> <type>SubstringComparator</type>
<expected-output>Usage: hdfs erasurecode [generic options]</expected-output> <expected-output>Usage: hdfs ec [generic options]</expected-output>
</comparator> </comparator>
</comparators> </comparators>
</test> </test>