Bläddra i källkod

commit 127148ec15ec358e72d0d8767c5d6820b8ca4e77
Author: Jakob Homan <jhoman@yahoo-inc.com>
Date: Mon Apr 5 16:28:56 2010 -0700

HDFS:1080 from https://issues.apache.org/jira/secure/attachment/12440810/HDFS-1080-Y20.patch

+++ b/YAHOO-CHANGES.txt
+
+ HDFS-1080. SecondaryNameNode image transfer should use the defined
+ http address rather than local ip address (jhoman)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077369 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 år sedan
förälder
incheckning
2e35ec8401

+ 1 - 2
src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java

@@ -376,8 +376,7 @@ public class SecondaryNameNode implements Runnable {
    */
   private void putFSImage(CheckpointSignature sig) throws IOException {
     String fileid = "putimage=1&port=" + imagePort +
-      "&machine=" +
-      InetAddress.getLocalHost().getHostAddress() +
+      "&machine=" + infoBindAddress +
       "&token=" + sig.toString();
     LOG.info("Posted URL " + fsName + fileid);
     TransferFsImage.getFileClient(fsName, fileid, (File[])null);