hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r899426 - in /hadoop/common/branches/branch-0.20: CHANGES.txt src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java
Date Thu, 14 Jan 2010 21:44:37 GMT
Author: szetszwo
Date: Thu Jan 14 21:44:36 2010
New Revision: 899426

URL: http://svn.apache.org/viewvc?rev=899426&view=rev
Log:
HDFS-187. Initialize secondary namenode http address in TestStartup.  Contributed by Todd
Lipcon

Modified:
    hadoop/common/branches/branch-0.20/CHANGES.txt
    hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java

Modified: hadoop/common/branches/branch-0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20/CHANGES.txt?rev=899426&r1=899425&r2=899426&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20/CHANGES.txt Thu Jan 14 21:44:36 2010
@@ -90,6 +90,9 @@
     HADOOP-6315. Avoid incorrect use of BuiltInflater/BuiltInDeflater in
     GzipCodec. (Aaron Kimball via cdouglas)
 
+    HDFS-187. Initialize secondary namenode http address in TestStartup.
+    (Todd Lipcon via szetszwo)
+
 Release 0.20.1 - 2009-09-01
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java?rev=899426&r1=899425&r2=899426&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java
(original)
+++ hadoop/common/branches/branch-0.20/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java
Thu Jan 14 21:44:36 2010
@@ -28,7 +28,7 @@
  */
 public class TestStartup extends TestCase {
   public static final String NAME_NODE_HOST = "localhost:";
-  public static final String NAME_NODE_HTTP_HOST = "0.0.0.0:";
+  public static final String WILDCARD_HTTP_HOST = "0.0.0.0:";
   private static final Log LOG =
     LogFactory.getLog(TestStartup.class.getName());
   private Configuration config;
@@ -65,6 +65,7 @@
     config.set("dfs.data.dir", new File(hdfsDir, "data").getPath());
 
     config.set("fs.checkpoint.dir",new File(hdfsDir, "secondary").getPath());
+    config.set("dfs.secondary.http.address", WILDCARD_HTTP_HOST + "0");
     //config.set("fs.default.name", "hdfs://"+ NAME_NODE_HOST + "0");
     
     FileSystem.setDefaultUri(config, "hdfs://"+NAME_NODE_HOST + "0");



Mime
View raw message