Explorar o código

HDFS-882. Datanode logs the hostname and port its listening on.
(Steve Loughran via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@960824 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur %!s(int64=15) %!d(string=hai) anos
pai
achega
b1b4295a9c

+ 3 - 0
CHANGES.txt

@@ -111,6 +111,9 @@ Trunk (unreleased changes)
     HDFS-1202. DataBlockScanner throws NPE when updated before 
     initialized. (Todd Lipcon via dhruba)
 
+    HDFS-882. Datanode logs the hostname and port its listening on.
+    (Steve Loughran via dhruba)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 2 - 0
src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java

@@ -389,6 +389,7 @@ public class DataNode extends Configured
     int tmpInfoPort = infoSocAddr.getPort();
     this.infoServer = new HttpServer("datanode", infoHost, tmpInfoPort,
         tmpInfoPort == 0, conf);
+    LOG.debug("Datanode listening on " + infoHost + ":" + tmpInfoPort);
     if (conf.getBoolean("dfs.https.enable", false)) {
       boolean needClientAuth = conf.getBoolean(DFSConfigKeys.DFS_CLIENT_HTTPS_NEED_AUTH_KEY,
                                                DFSConfigKeys.DFS_CLIENT_HTTPS_NEED_AUTH_DEFAULT);
@@ -398,6 +399,7 @@ public class DataNode extends Configured
       sslConf.addResource(conf.get("dfs.https.server.keystore.resource",
           "ssl-server.xml"));
       this.infoServer.addSslListener(secInfoSocAddr, sslConf, needClientAuth);
+      LOG.debug("Datanode listening for SSL on " + secInfoSocAddr);
     }
     this.infoServer.addInternalServlet(null, "/streamFile/*", StreamFile.class);
     this.infoServer.addInternalServlet(null, "/getFileChecksum/*",