hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r472212 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/NameNode.java
Date Tue, 07 Nov 2006 19:21:27 GMT
Author: cutting
Date: Tue Nov  7 11:21:26 2006
New Revision: 472212

URL: http://svn.apache.org/viewvc?view=rev&rev=472212
Log:
HADOOP-682.  Fix DFS format command to work correctly when configured with a non-existent
directory.  Contributed by Sanjay.

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

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=472212&r1=472211&r2=472212
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Nov  7 11:21:26 2006
@@ -10,9 +10,11 @@
 
  2. HADOOP-565.  Upgrade to Jetty version 6. (Sanjay Dahiya via cutting)
 
+ 3. HADOOP-682.  Fix DFS format command to work correctly when
+    configured with a non-existent directory. (Sanjay Dahiya via cutting)
 
-Release 0.8.0 - 2006-11-03
 
+Release 0.8.0 - 2006-11-03
 
  1. HADOOP-477.  Extend contrib/streaming to scan the PATH environment
     variables when resolving executable program names.

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java?view=diff&rev=472212&r1=472211&r2=472212
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java Tue Nov  7 11:21:26 2006
@@ -574,6 +574,9 @@
                 System.err.println("Formatted "+dirs[idx]);
               }
               System.in.read(); // discard the enter-key
+            }else{
+              format(dirs[idx]);
+              System.err.println("Formatted "+dirs[idx]);
             }
           }
           System.exit(aborted ? 1 : 0);



Mime
View raw message