HDFS-7814. Fix usage string of storageType parameter for "dfsadmin -setSpaceQuota/clrSpaceQuota". Contributed by Xiaoyu Yao.
(cherry picked from commit 8c6ae0d619
)
This commit is contained in:
parent
a1963968d2
commit
ad77dfc3e4
|
@ -695,6 +695,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 class DFSAdmin extends FsShell {
|
|||
/** 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 class DFSAdmin extends FsShell {
|
|||
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" +
|
||||
|
|
|
@ -15521,7 +15521,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>
|
||||
|
@ -15556,7 +15556,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