|
@@ -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/*",
|