|
@@ -164,7 +164,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" +
|
|
@@ -216,7 +216,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;
|
|
|
|
|
@@ -274,7 +280,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;
|
|
@@ -569,7 +580,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.
|
|
@@ -1805,7 +1816,8 @@ public class DFSAdmin extends FsShell {
|
|
|
+ " [-refreshCallQueue]");
|
|
|
} else if ("-reconfig".equals(cmd)) {
|
|
|
System.err.println("Usage: hdfs dfsadmin"
|
|
|
- + " [-reconfig <namenode|datanode> <host:port> <start|status>]");
|
|
|
+ + " [-reconfig <namenode|datanode> <host:port> "
|
|
|
+ + "<start|status|properties>]");
|
|
|
} else if ("-refresh".equals(cmd)) {
|
|
|
System.err.println("Usage: hdfs dfsadmin"
|
|
|
+ " [-refresh <hostname:port> <resource_identifier> [arg1..argn]");
|