Repository: hadoop
Updated Branches:
  refs/heads/trunk e9a005dfc -> f30473f2e


HDFS-14183. [SPS] Remove the -w parameter from the -satisfystoragepolicy usage. 
Contributed by Ayush Saxena.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f30473f2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f30473f2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f30473f2

Branch: refs/heads/trunk
Commit: f30473f2ef10482976fa49730dd9a139417150dc
Parents: e9a005d
Author: Akira Ajisaka <[email protected]>
Authored: Mon Dec 31 03:16:26 2018 +0900
Committer: Akira Ajisaka <[email protected]>
Committed: Mon Dec 31 03:16:26 2018 +0900

----------------------------------------------------------------------
 .../apache/hadoop/hdfs/tools/StoragePolicyAdmin.java   | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f30473f2/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/StoragePolicyAdmin.java
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/StoragePolicyAdmin.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/StoragePolicyAdmin.java
index e02208c..14b31e4 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/StoragePolicyAdmin.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/StoragePolicyAdmin.java
@@ -257,7 +257,7 @@ public class StoragePolicyAdmin extends Configured 
implements Tool {
 
     @Override
     public String getShortUsage() {
-      return "[" + getName() + " [-w] -path <path>]\n";
+      return "[" + getName() + " -path <path>]\n";
     }
 
     @Override
@@ -265,17 +265,6 @@ public class StoragePolicyAdmin extends Configured 
implements Tool {
       TableListing listing = AdminHelper.getOptionDescriptionListing();
       listing.addRow("<path>", "The path of the file/directory to satisfy"
           + " storage policy");
-      listing.addRow("-w",
-          "It requests that the command wait till all the files satisfy"
-              + " the policy in given path. This will print the current"
-              + "status of the path in each 10 sec and status are:\n"
-              + "PENDING : Path is in queue and not processed for satisfying"
-              + " the policy.\n"
-              + "IN_PROGRESS : Satisfying the storage policy for"
-              + " path.\n"
-              + "SUCCESS : Storage policy satisfied for the path.\n"
-              + "FAILURE : Few blocks failed to move.\n"
-              + "NOT_AVAILABLE : Status not available.");
       return getShortUsage() + "\n" +
           "Schedule blocks to move based on file/directory policy.\n\n" +
           listing.toString();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to