hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weic...@apache.org
Subject hadoop git commit: HDFS-9937. Update dfsadmin command line help and HdfsQuotaAdminGuide. Contributed by Kai Sasaki.
Date Tue, 26 Jul 2016 15:33:17 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 7921ad949 -> 53bf63270


HDFS-9937. Update dfsadmin command line help and HdfsQuotaAdminGuide. Contributed by Kai Sasaki.

(cherry picked from commit 25f0a9b3ab136d44f70eb2805598e2df8325612a)


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

Branch: refs/heads/branch-2.8
Commit: 53bf632702cf0ed9ef257336c95d4048bd806363
Parents: 7921ad9
Author: Wei-Chiu Chuang <weichiu@apache.org>
Authored: Tue Jul 26 08:00:32 2016 -0700
Committer: Wei-Chiu Chuang <weichiu@apache.org>
Committed: Tue Jul 26 08:31:00 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hdfs/tools/DFSAdmin.java  | 21 +++++++++++++++-----
 .../src/site/markdown/HdfsQuotaAdminGuide.md    |  7 +++++--
 2 files changed, 21 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/53bf6327/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
index 37c0c7c..32a9201 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
@@ -163,7 +163,7 @@ public class DFSAdmin extends FsShell {
     private static final String NAME = "setQuota";
     private static final String USAGE =
       "-"+NAME+" <quota> <dirname>...<dirname>";
-    private static final String DESCRIPTION = 
+    private static final String DESCRIPTION =
         "-setQuota <quota> <dirname>...<dirname>: " +
         "Set the quota <quota> for each directory <dirName>.\n" +
         "\t\tThe directory quota is a long integer that puts a hard limit\n" +
@@ -215,7 +215,13 @@ public class DFSAdmin extends FsShell {
     "\t\t1. the directory does not exist or is a file, or\n" +
     "\t\t2. user is not an administrator.\n" +
     "\t\tIt does not fault if the directory has no quota.\n" +
-    "\t\tThe storage type specific quota is cleared when -storageType option is specified.";
+    "\t\tThe storage type specific quota is cleared when -storageType option is specified."
+
+    "\t\tAvailable storageTypes are \n" +
+    "\t\t- RAM_DISK\n" +
+    "\t\t- DISK\n" +
+    "\t\t- SSD\n" +
+    "\t\t- ARCHIVE";
+
 
     private StorageType type;
 
@@ -273,7 +279,12 @@ public class DFSAdmin extends FsShell {
         "\t\t1. quota is not a positive integer or zero, or\n" +
         "\t\t2. user is not an administrator, or\n" +
         "\t\t3. the directory does not exist or is a file.\n" +
-        "\t\tThe storage type specific quota is set when -storageType option is specified.\n";
+        "\t\tThe storage type specific quota is set when -storageType option is specified.\n"
+
+        "\t\tAvailable storageTypes are \n" +
+        "\t\t- RAM_DISK\n" +
+        "\t\t- DISK\n" +
+        "\t\t- SSD\n" +
+        "\t\t- ARCHIVE";
 
     private long quota; // the quota to be set
     private StorageType type;
@@ -567,7 +578,7 @@ public class DFSAdmin extends FsShell {
 
   /**
    * Safe mode maintenance command.
-   * Usage: hdfs dfsadmin -safemode [enter | leave | get]
+   * Usage: hdfs dfsadmin -safemode [enter | leave | get | wait | forceExit]
    * @param argv List of of command line parameters.
    * @param idx The index of the command that is being processed.
    * @exception IOException if the filesystem does not exist.
@@ -1693,7 +1704,7 @@ public class DFSAdmin extends FsShell {
                          + " [-refreshCallQueue]");
     } else if ("-reconfig".equals(cmd)) {
       System.err.println("Usage: hdfs dfsadmin"
-                         + " [-reconfig <datanode|...> <host:port> <start|status>]");
+                         + " [-reconfig <datanode|...> <host:port> <start|status|properties>]");
     } else if ("-refresh".equals(cmd)) {
       System.err.println("Usage: hdfs dfsadmin"
                          + " [-refresh <hostname:port> <resource_identifier>
[arg1..argn]");

http://git-wip-us.apache.org/repos/asf/hadoop/blob/53bf6327/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md
index 7c15bb1..107fd12 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md
@@ -100,14 +100,17 @@ Quotas are managed by a set of commands available only to the administrator.
     gigabytes and 2t for 2 terabytes etc. Best effort for each
     directory, with faults reported if N is neither zero nor a positive
     integer, the directory does not exist or it is a file, or the
-    directory would immediately exceed the new quota.
+    directory would immediately exceed the new quota. The storage type
+    specific quota is set when -storageType option is specified. Available
+    storageTypes are RAM_DISK,DISK,SSD,ARCHIVE.
 
 *   `hdfs dfsadmin -clrSpaceQuota -storageType <storagetype> <directory>...<directory>`
 
     Remove storage type quota specified for each directory. Best effort
     for each directory, with faults reported if the directory does not exist or
     it is a file. It is not a fault if the directory has no storage type quota on
-    for storage type specified.
+    for storage type specified. The storage type specific quota is cleared when -storageType
+    option is specified. Available storageTypes are RAM_DISK,DISK,SSD,ARCHIVE.
 
 Reporting Command
 -----------------


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message