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 jl...@apache.org on 2017/04/25 22:31:16 UTC
hadoop git commit: HDFS-11691. Add a proper scheme to the datanode
links in NN web UI. Contributed by Kihwal Lee
Repository: hadoop
Updated Branches:
refs/heads/trunk 2ba21d637 -> e4321ec84
HDFS-11691. Add a proper scheme to the datanode links in NN web UI. Contributed by Kihwal Lee
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e4321ec8
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e4321ec8
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e4321ec8
Branch: refs/heads/trunk
Commit: e4321ec84321672a714419278946fe1012daac71
Parents: 2ba21d6
Author: Jason Lowe <jl...@yahoo-inc.com>
Authored: Tue Apr 25 17:30:42 2017 -0500
Committer: Jason Lowe <jl...@yahoo-inc.com>
Committed: Tue Apr 25 17:30:42 2017 -0500
----------------------------------------------------------------------
.../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html | 2 +-
.../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4321ec8/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html
----------------------------------------------------------------------
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 c01f36c..6ae3960 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}
<tr>
<td ng-value="{state}-{name}" class="dfshealth-node-icon dfshealth-node-{state}">{name} ({xferaddr})</td>
- <td ng-value="{state}-{name}"><a href='//{dnWebAddress}'>{dnWebAddress}</a></td>
+ <td ng-value="{state}-{name}"><a href='{dnWebAddress}'>{dnWebAddress}</a></td>
<td ng-value="{lastContact}">{lastContact}s</td>
<td ng-value="{lastBlockReport}">{lastBlockReport}m</td>
<td ng-value="{usedPercentage}">
http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4321ec8/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js
----------------------------------------------------------------------
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 59958a1..b785274 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") {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org