Browse Source

HADOOP-682. Fix DFS format command to work correctly when configured with a non-existent directory. Contributed by Sanjay.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@472212 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 years ago
parent
commit
38afdcbba8
2 changed files with 6 additions and 1 deletions
  1. 3 1
      CHANGES.txt
  2. 3 0
      src/java/org/apache/hadoop/dfs/NameNode.java

+ 3 - 1
CHANGES.txt

@@ -10,9 +10,11 @@ Trunk (unreleased changes)
 
  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.

+ 3 - 0
src/java/org/apache/hadoop/dfs/NameNode.java

@@ -574,6 +574,9 @@ public class NameNode implements ClientProtocol, DatanodeProtocol, FSConstants {
                 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);