From 6ebb92c9c1b36ee353e45a6e2dafe6fbb9a15715 Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Tue, 17 May 2016 11:10:48 -0700 Subject: [PATCH] HDFS-10404. Fix formatting of CacheAdmin command usage help text (Yiqun Lin via cmccabe) (cherry picked from commit 7cd5ae62f639a857f24f5463f2aefc099c631a14) --- .../main/java/org/apache/hadoop/hdfs/tools/CacheAdmin.java | 6 ++++-- .../src/site/markdown/CentralizedCacheManagement.md | 2 +- .../hadoop-hdfs/src/site/markdown/HDFSCommands.md | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CacheAdmin.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CacheAdmin.java index 6888ea8e85e..7912c3a16ac 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CacheAdmin.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CacheAdmin.java @@ -443,7 +443,8 @@ public class CacheAdmin extends Configured implements Tool { @Override public String getShortUsage() { return "[" + getName() - + " [-stats] [-path ] [-pool ] [-id ]\n"; + + " [-stats] [-path ] [-pool ] [-id ]" + + "]\n"; } @Override @@ -554,7 +555,8 @@ public class CacheAdmin extends Configured implements Tool { public String getShortUsage() { return "[" + NAME + " [-owner ] " + "[-group ] [-mode ] [-limit ] " + - "[-maxTtl ]\n"; + "[-maxTtl ]" + + "]\n"; } @Override diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/CentralizedCacheManagement.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/CentralizedCacheManagement.md index 72c125d5e27..210d25ca364 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/CentralizedCacheManagement.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/CentralizedCacheManagement.md @@ -157,7 +157,7 @@ List cache directives. #### addPool -Usage: `hdfs cacheadmin -addPool [-owner ] [-group ] [-mode ] [-limit ] [-maxTtl +Usage: `hdfs cacheadmin -addPool [-owner ] [-group ] [-mode ] [-limit ] [-maxTtl ]` Add a new cache pool. 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 cc426c63d1e..36ec7ffcaa5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -312,10 +312,10 @@ Usage: hdfs cacheadmin [-addDirective -path -pool [-force] [-replication ] [-ttl ]] hdfs cacheadmin [-modifyDirective -id [-path ] [-force] [-replication ] [-pool ] [-ttl ]] - hdfs cacheadmin [-listDirectives [-stats] [-path ] [-pool ] [-id ] + hdfs cacheadmin [-listDirectives [-stats] [-path ] [-pool ] [-id ]] hdfs cacheadmin [-removeDirective ] hdfs cacheadmin [-removeDirectives -path ] - hdfs cacheadmin [-addPool [-owner ] [-group ] [-mode ] [-limit ] [-maxTtl ] + hdfs cacheadmin [-addPool [-owner ] [-group ] [-mode ] [-limit ] [-maxTtl ]] hdfs cacheadmin [-modifyPool [-owner ] [-group ] [-mode ] [-limit ] [-maxTtl ]] hdfs cacheadmin [-removePool ] hdfs cacheadmin [-listPools [-stats] []]