HDFS-10471. DFSAdmin#SetQuotaCommand's help msg is not correct. Contributed by Yiqun Lin.

This commit is contained in:
Akira Ajisaka 2016-06-03 04:10:32 +09:00
parent ead61c45da
commit 1df6f5735c
2 changed files with 22 additions and 22 deletions

View File

@ -170,7 +170,7 @@ private static class SetQuotaCommand extends DFSAdminCommand {
"\t\tThe directory quota is a long integer that puts a hard limit\n" + "\t\tThe directory quota is a long integer that puts a hard limit\n" +
"\t\ton the number of names in the directory tree\n" + "\t\ton the number of names in the directory tree\n" +
"\t\tFor each directory, attempt to set the quota. An error will be reported if\n" + "\t\tFor each directory, attempt to set the quota. An error will be reported if\n" +
"\t\t1. N is not a positive integer, or\n" + "\t\t1. quota is not a positive integer, or\n" +
"\t\t2. User is not an administrator, or\n" + "\t\t2. User is not an administrator, or\n" +
"\t\t3. The directory does not exist or is a file.\n" + "\t\t3. The directory does not exist or is a file.\n" +
"\t\tNote: A quota of 1 would force the directory to remain empty.\n"; "\t\tNote: A quota of 1 would force the directory to remain empty.\n";
@ -271,7 +271,7 @@ private static class SetSpaceQuotaCommand extends DFSAdminCommand {
"\t\tQuota can also be specified with a binary prefix for terabytes,\n" + "\t\tQuota can also be specified with a binary prefix for terabytes,\n" +
"\t\tpetabytes etc (e.g. 50t is 50TB, 5m is 5MB, 3p is 3PB).\n" + "\t\tpetabytes etc (e.g. 50t is 50TB, 5m is 5MB, 3p is 3PB).\n" +
"\t\tFor each directory, attempt to set the quota. An error will be reported if\n" + "\t\tFor each directory, attempt to set the quota. An error will be reported if\n" +
"\t\t1. N is not a positive integer, or\n" + "\t\t1. quota is not a positive integer or zero, or\n" +
"\t\t2. user is not an administrator, or\n" + "\t\t2. user is not an administrator, or\n" +
"\t\t3. the directory does not exist or is a file.\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";

View File

@ -15868,7 +15868,7 @@
</comparator> </comparator>
<comparator> <comparator>
<type>RegexpComparator</type> <type>RegexpComparator</type>
<expected-output>^( |\t)*1. N is not a positive integer, or( )*</expected-output> <expected-output>^( |\t)*1. quota is not a positive integer, or( )*</expected-output>
</comparator> </comparator>
<comparator> <comparator>
<type>RegexpComparator</type> <type>RegexpComparator</type>