hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1148070 - in /hadoop/common/branches/HDFS-1073/hdfs: CHANGES.HDFS-1073.txt bin/hdfs src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java
Date Mon, 18 Jul 2011 22:08:03 GMT
Author: todd
Date: Mon Jul 18 22:08:02 2011
New Revision: 1148070

URL: http://svn.apache.org/viewvc?rev=1148070&view=rev
Log:
HDFS-2160. Fix CreateEditsLog test tool in HDFS-1073 branch. Contributed by Todd Lipcon.

Modified:
    hadoop/common/branches/HDFS-1073/hdfs/CHANGES.HDFS-1073.txt
    hadoop/common/branches/HDFS-1073/hdfs/bin/hdfs
    hadoop/common/branches/HDFS-1073/hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java

Modified: hadoop/common/branches/HDFS-1073/hdfs/CHANGES.HDFS-1073.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-1073/hdfs/CHANGES.HDFS-1073.txt?rev=1148070&r1=1148069&r2=1148070&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-1073/hdfs/CHANGES.HDFS-1073.txt (original)
+++ hadoop/common/branches/HDFS-1073/hdfs/CHANGES.HDFS-1073.txt Mon Jul 18 22:08:02 2011
@@ -75,3 +75,4 @@ HDFS-1780. Reduce need to rewrite FSImag
 HDFS-2104. Add a flag to the 2NN to format its checkpoint dirs on startup.
            (todd)
 HDFS-2135. Fix regression of HDFS-1955 in HDFS-1073 branch. (todd)
+HDFS-2160. Fix CreateEditsLog test tool in HDFS-1073 branch. (todd)

Modified: hadoop/common/branches/HDFS-1073/hdfs/bin/hdfs
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-1073/hdfs/bin/hdfs?rev=1148070&r1=1148069&r2=1148070&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-1073/hdfs/bin/hdfs (original)
+++ hadoop/common/branches/HDFS-1073/hdfs/bin/hdfs Mon Jul 18 22:08:02 2011
@@ -106,9 +106,7 @@ elif [ "$COMMAND" = "getconf" ] ; then
 elif [ "$COMMAND" = "groups" ] ; then
   CLASS=org.apache.hadoop.hdfs.tools.GetGroups
 else
-  echo $COMMAND - invalid command
-  print_usage
-  exit
+  CLASS="$COMMAND"
 fi
 
 # for developers, add hdfs classes to CLASSPATH

Modified: hadoop/common/branches/HDFS-1073/hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-1073/hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java?rev=1148070&r1=1148069&r2=1148070&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-1073/hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java
(original)
+++ hadoop/common/branches/HDFS-1073/hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java
Mon Jul 18 22:08:02 2011
@@ -195,13 +195,9 @@ public class CreateEditsLog {
     }
     
 
-    FSImage fsImage = null;
-    /* TODO new FSImage(editsLogDir.getAbsoluteFile().toURI());*/
     FileNameGenerator nameGenerator = new FileNameGenerator(BASE_PATH, 100);
-
-    FSEditLog editLog = fsImage.getEditLog();
-    // TODO editLog.reset();
-    // TODOeditLog.open();
+    FSEditLog editLog = FSImageTestUtil.createStandaloneEditLog(editsLogDir);
+    editLog.open();
     addFiles(editLog, numFiles, replication, numBlocksPerFile, startingBlockId,
              nameGenerator);
     editLog.logSync();



Mime
View raw message