diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html index c01f36cdb6..6ae39603a3 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html @@ -319,7 +319,7 @@ {#LiveNodes} {name} ({xferaddr}) - {dnWebAddress} + {dnWebAddress} {lastContact}s {lastBlockReport}m diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js index 59958a1ed1..b785274f4d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js @@ -215,9 +215,9 @@ var port = n.infoAddr.split(":")[1]; var securePort = n.infoSecureAddr.split(":")[1]; var dnHost = n.name.split(":")[0]; - n.dnWebAddress = dnHost + ":" + port; + n.dnWebAddress = "http://" + dnHost + ":" + port; if (securePort != 0) { - n.dnWebAddress = dnHost + ":" + securePort; + n.dnWebAddress = "https://" + dnHost + ":" + securePort; } if (n.adminState === "In Service") {