You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/03/04 05:02:57 UTC

svn commit: r1077318 - in /hadoop/common/branches/branch-0.20-security-patches: CHANGES.txt src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java

Author: omalley
Date: Fri Mar  4 04:02:57 2011
New Revision: 1077318

URL: http://svn.apache.org/viewvc?rev=1077318&view=rev
Log:
commit b2d7a3dbee22d44a94e9fbebe70cdb33c7e3e808
Author: Suresh Srinivas <su...@yahoo-inc.com>
Date:   Mon Mar 15 12:05:31 2010 -0700

    HDFS-187 from https://issues.apache.org/jira/secure/attachment/12430266/hdfs-187-0.20.txt

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

Modified: hadoop/common/branches/branch-0.20-security-patches/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/CHANGES.txt?rev=1077318&r1=1077317&r2=1077318&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security-patches/CHANGES.txt Fri Mar  4 04:02:57 2011
@@ -17,6 +17,11 @@ Release 0.20.2 - Unreleased
     before it constructs and sends its own ack message for the packet.
     (hairong)
 
+  IMPROVEMENTS
+
+    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-security-patches/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java?rev=1077318&r1=1077317&r2=1077318&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java (original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/hdfs/server/namenode/TestStartup.java Fri Mar  4 04:02:57 2011
@@ -28,7 +28,7 @@ import org.apache.hadoop.util.StringUtil
  */
 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 @@ public class TestStartup extends TestCas
     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");