You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2019/07/17 17:53:51 UTC
[hadoop] branch trunk updated: HDFS-13647. Fix the description of
storageType option for space quota. Contributed by Takanobu Asanuma.
This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new af0665c HDFS-13647. Fix the description of storageType option for space quota. Contributed by Takanobu Asanuma.
af0665c is described below
commit af0665c7f5b1a28eb2262bae9a577fd908ad79ea
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Wed Jul 17 23:17:31 2019 +0530
HDFS-13647. Fix the description of storageType option for space quota. Contributed by Takanobu Asanuma.
---
.../src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java | 8 ++++----
.../hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md | 4 ++--
.../hadoop-hdfs/src/test/resources/testHDFSConf.xml | 8 ++++----
3 files changed, 10 insertions(+), 10 deletions(-)
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 78c02a6..57776b6 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
@@ -240,10 +240,10 @@ public class DFSAdmin extends FsShell {
"\t\tThe storage type specific quota is cleared 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";
+ "\t\t- ARCHIVE\n" +
+ "\t\t- PROVIDED";
private StorageType type;
@@ -304,10 +304,10 @@ public class DFSAdmin extends FsShell {
"\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\tAvailable storageTypes are \n" +
- "\t\t- RAM_DISK\n" +
"\t\t- DISK\n" +
"\t\t- SSD\n" +
- "\t\t- ARCHIVE";
+ "\t\t- ARCHIVE\n" +
+ "\t\t- PROVIDED";
private long quota; // the quota to be set
private StorageType type;
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 461bdbf..9da28e3 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HdfsQuotaAdminGuide.md
@@ -96,7 +96,7 @@ Quotas are managed by a set of commands available only to the administrator.
integer, the directory does not exist or it is a file, or the
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.
+ storageTypes are DISK,SSD,ARCHIVE,PROVIDED.
* `hdfs dfsadmin -clrSpaceQuota -storageType <storagetype> <directory>...<directory>`
@@ -104,7 +104,7 @@ Quotas are managed by a set of commands available only to the administrator.
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. The storage type specific quota is cleared when -storageType
- option is specified. Available storageTypes are RAM_DISK,DISK,SSD,ARCHIVE.
+ option is specified. Available storageTypes are DISK,SSD,ARCHIVE,PROVIDED.
Reporting Command
-----------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
index 4ab093b..ea327c4 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
@@ -16108,10 +16108,6 @@
</comparator>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^( |\t)*- RAM_DISK( )*</expected-output>
- </comparator>
- <comparator>
- <type>RegexpComparator</type>
<expected-output>^( |\t)*- DISK( )*</expected-output>
</comparator>
<comparator>
@@ -16122,6 +16118,10 @@
<type>RegexpComparator</type>
<expected-output>^( |\t)*- ARCHIVE( )*</expected-output>
</comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^( |\t)*- PROVIDED( )*</expected-output>
+ </comparator>
</comparators>
</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org