hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r581492 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/DFSAdmin.java
Date Wed, 03 Oct 2007 04:40:05 GMT
Author: dhruba
Date: Tue Oct  2 21:40:04 2007
New Revision: 581492

URL: http://svn.apache.org/viewvc?rev=581492&view=rev
Log:
HADOOP-1626.  Improve dfsadmin help messages.
(Lohit Vijayarenu via dhruba)


Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSAdmin.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=581492&r1=581491&r2=581492&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Oct  2 21:40:04 2007
@@ -229,6 +229,9 @@
     HADOOP-1959.  Use "/" instead of File.separator in the StatusHttpServer.
     (jimk via omalley)
 
+    HADOOP-1626.  Improve dfsadmin help messages.
+    (Lohit Vijayarenu via dhruba)
+
   IMPROVEMENTS
 
     HADOOP-1908. Restructure data node code so that block sending and 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSAdmin.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSAdmin.java?rev=581492&r1=581491&r2=581492&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSAdmin.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DFSAdmin.java Tue Oct  2 21:40:04 2007
@@ -169,31 +169,45 @@
   }
 
   private void printHelp(String cmd) {
-    String summary = "hadoop dfsadmin is the command to execute dfs administrative commands.\n"
+
+    String summary = "hadoop dfsadmin is the command to execute DFS administrative commands.\n"
+
       "The full syntax is: \n\n" +
       "hadoop dfsadmin [-report] [-safemode <enter | leave | get | wait>]\n" +
       "\t[-refreshNodes] [-help [cmd]]\n";
 
     String report ="-report: \tReports basic filesystem information and statistics.\n";
         
-    String safemode = "-safemode <enter|leave|get|wait>:  Safemode maintenance command.\n"
+ 
-      "\t\tSafe mode is a name node state when it\n" +
-      "\t\t\t1.  does not accept changes to name space (read-only)\n" +
+    String safemode = "-safemode <enter|leave|get|wait>:  Safe mode maintenance command.\n"
+ 
+      "\t\tSafe mode is a Namenode state in which it\n" +
+      "\t\t\t1.  does not accept changes to the name space (read-only)\n" +
       "\t\t\t2.  does not replicate or delete blocks.\n" +
-      "\t\tSafe mode is entered automatically at name node startup, and\n" +
+      "\t\tSafe mode is entered automatically at Namenode startup, and\n" +
       "\t\tleaves safe mode automatically when the configured minimum\n" +
-      "\t\tpercentage of blocks satisfies the minimal replication\n" +
+      "\t\tpercentage of blocks satisfies the minimum replication\n" +
       "\t\tcondition.  Safe mode can also be entered manually, but then\n" +
-      "\t\tcan only be turned off manually as well.\n";
+      "\t\tit can only be turned off manually as well.\n";
 
-    String refreshNodes = "-refreshNodes: \tReread the hosts and exclude files to update
the set\n" +
-      "\t\tof datanodes that are allowed to connect to the namenode\n" +
-      "\t\tand those that should be decommissioned/recommissioned.\n";
+    String refreshNodes = "-refreshNodes: \tRe-read the hosts and exclude files to update
the set\n" +
+      "\t\tof Datanodes that are allowed to connect to the Namenode\n" +
+      "\t\tand those that should be decommissioned of recommissioned.\n";
 
-    String upgradeProgress = "-upgradeProgress <status|details|force>: request current\n"
-      + "distributed upgrade status, a detailed status or force the upgrade to proceed.";
+    String finalizeUpgrade = "-finalizeUpgrade: Finalize upgrade of DFS.\n" +
+      "\t\tDatanodes delete their previous version working directories,\n" +
+      "\t\tfollowed by Namenode doing the same.\n" + 
+      "\t\tThis completes the upgrade process.\n";
 
-    String help = "-help [cmd]: \tDisplays help for given command or all commands if none\n"
+
+    String upgradeProgress = "-upgradeProgress <status|details|force>: \n" +
+      "\t\trequest current distributed upgrade status, \n" +
+      "\t\ta detailed status or force the upgrade to proceed.\n";
+
+    String metaSave = "-metasave <filename>: \tSave Namenode's primary data structures\n"
+
+      "\t\tto <filename> in the directory specified by hadoop.log.dir property.\n"
+
+      "\t\t<filename> will contain one line for each of the following\n" +
+      "\t\t\t1. Datanodes heart beating with Namenode\n" +
+      "\t\t\t2. Blocks waiting to be replicated\n" +
+      "\t\t\t3. Blocks currrently being replicated\n" +
+      "\t\t\t4. Blocks waiting to be deleted\n";
+
+    String help = "-help [cmd]: \tDisplays help for the given command or all commands if
none\n" +
       "\t\tis specified.\n";
 
     if ("report".equals(cmd)) {
@@ -202,8 +216,12 @@
       System.out.println(safemode);
     } else if ("refreshNodes".equals(cmd)) {
       System.out.println(refreshNodes);
+    } else if ("finalizeUpgrade".equals(cmd)) {
+      System.out.println(finalizeUpgrade);
     } else if ("upgradeProgress".equals(cmd)) {
       System.out.println(upgradeProgress);
+    } else if ("metasave".equals(cmd)) {
+      System.out.println(metaSave);
     } else if ("help".equals(cmd)) {
       System.out.println(help);
     } else {
@@ -211,7 +229,9 @@
       System.out.println(report);
       System.out.println(safemode);
       System.out.println(refreshNodes);
+      System.out.println(finalizeUpgrade);
       System.out.println(upgradeProgress);
+      System.out.println(metaSave);
       System.out.println(help);
       System.out.println();
       ToolRunner.printGenericCommandUsage(System.out);



Mime
View raw message