Author: harsh
Date: Thu Jan 12 05:13:19 2012
New Revision: 1230398
URL: http://svn.apache.org/viewvc?rev=1230398&view=rev
Log:
HDFS-69. Improve the 'dfsadmin' commandline help. (harsh)
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
Modified: hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt?rev=1230398&r1=1230397&r2=1230398&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt Thu Jan 12
05:13:19 2012
@@ -259,6 +259,8 @@ Release 0.23.1 - UNRELEASED
HDFS-1314. Make dfs.blocksize accept size-indicating prefixes (Sho
Shimauchi via harsh)
+ HDFS-69. Improve the 'dfsadmin' commandline help. (harsh)
+
OPTIMIZATIONS
HDFS-2130. Switch default checksum to CRC32C. (todd)
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java?rev=1230398&r1=1230397&r2=1230398&view=diff
==============================================================================
---
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
(original)
+++
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSAdmin.java
Thu Jan 12 05:13:19 2012
@@ -131,8 +131,9 @@ public class DFSAdmin extends FsShell {
"\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\t1. N is not a positive integer, or\n" +
- "\t\t2. user is not an administrator, or\n" +
- "\t\t3. the directory does not exist or is a file, or\n";
+ "\t\t2. User is not an administrator, or\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";
private final long quota; // the quota to be set
@@ -917,6 +918,7 @@ public class DFSAdmin extends FsShell {
+ " [-setBalancerBandwidth <bandwidth in bytes per
second>]");
} else {
System.err.println("Usage: java DFSAdmin");
+ System.err.println("Note: Administrative commands can only be run as the
HDFS superuser.");
System.err.println(" [-report]");
System.err.println(" [-safemode enter | leave | get | wait]");
System.err.println(" [-saveNamespace]");