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] []]