HDFS-7814. Fix usage string of storageType parameter for "dfsadmin -setSpaceQuota/clrSpaceQuota". Contributed by Xiaoyu Yao.
This commit is contained in:
parent
ce5bf927c3
commit
8c6ae0d619
@ -995,6 +995,9 @@ Release 2.7.0 - UNRELEASED
|
||||
HDFS-7788. Post-2.6 namenode may not start up with an image containing
|
||||
inodes created with an old release. (Rushabh Shah via kihwal)
|
||||
|
||||
HDFS-7814. Fix usage string of storageType parameter for
|
||||
"dfsadmin -setSpaceQuota/clrSpaceQuota". (Xiaoyu Yao via cnauroth)
|
||||
|
||||
BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS
|
||||
|
||||
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode
|
||||
|
@ -207,9 +207,9 @@ public void run(Path path) throws IOException {
|
||||
/** A class that supports command clearSpaceQuota */
|
||||
private static class ClearSpaceQuotaCommand extends DFSAdminCommand {
|
||||
private static final String NAME = "clrSpaceQuota";
|
||||
private static final String USAGE = "-"+NAME+" <dirname>...<dirname> -storageType <storagetype>";
|
||||
private static final String USAGE = "-"+NAME+" [-storageType <storagetype>] <dirname>...<dirname>";
|
||||
private static final String DESCRIPTION = USAGE + ": " +
|
||||
"Clear the disk space quota for each directory <dirName>.\n" +
|
||||
"Clear the space quota for each directory <dirName>.\n" +
|
||||
"\t\tFor each directory, attempt to clear the quota. An error will be reported if\n" +
|
||||
"\t\t1. the directory does not exist or is a file, or\n" +
|
||||
"\t\t2. user is not an administrator.\n" +
|
||||
@ -259,9 +259,9 @@ public void run(Path path) throws IOException {
|
||||
private static class SetSpaceQuotaCommand extends DFSAdminCommand {
|
||||
private static final String NAME = "setSpaceQuota";
|
||||
private static final String USAGE =
|
||||
"-"+NAME+" <quota> <dirname>...<dirname> -storageType <storagetype>";
|
||||
"-"+NAME+" <quota> [-storageType <storagetype>] <dirname>...<dirname>";
|
||||
private static final String DESCRIPTION = USAGE + ": " +
|
||||
"Set the disk space quota <quota> for each directory <dirName>.\n" +
|
||||
"Set the space quota <quota> for each directory <dirName>.\n" +
|
||||
"\t\tThe space quota is a long integer that puts a hard limit\n" +
|
||||
"\t\ton the total size of all the files under the directory tree.\n" +
|
||||
"\t\tThe extra space required for replication is also counted. E.g.\n" +
|
||||
|
@ -15711,7 +15711,7 @@
|
||||
<comparators>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
<expected-output>^-setSpaceQuota <quota> <dirname>...<dirname> -storageType <storagetype>: Set the disk space quota <quota> for each directory <dirName>.( )*</expected-output>
|
||||
<expected-output>^-setSpaceQuota <quota> \[-storageType <storagetype>\] <dirname>...<dirname>: Set the space quota <quota> for each directory <dirName>.( )*</expected-output>
|
||||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
@ -15746,7 +15746,7 @@
|
||||
<comparators>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
<expected-output>^-clrSpaceQuota <dirname>...<dirname> -storageType <storagetype>: Clear the disk space quota for each directory <dirName>.( )*</expected-output>
|
||||
<expected-output>^-clrSpaceQuota \[-storageType <storagetype>\] <dirname>...<dirname>: Clear the space quota for each directory <dirName>.( )*</expected-output>
|
||||
</comparator>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
|
Loading…
Reference in New Issue
Block a user