YARN-8182. [UI2] Proxy- Clicking on nodes under Nodes HeatMap gives 401 error. Contributed by Sunil G.

This commit is contained in:
Rohith Sharma K S 2018-04-20 19:35:17 +05:30
parent da5bcf5f7d
commit 87e09859f1

View File

@ -228,8 +228,8 @@ export default BaseChartComponent.extend({
rect.attr("fill", "DimGray");
}
var node_id = data.get("id"),
node_addr = data.get("nodeHTTPAddress"),
href = `#/yarn-node/${node_id}/${node_addr}`;
node_addr = encodeURIComponent(data.get("nodeHTTPAddress")),
href = `#/yarn-node/${node_id}/${node_addr}/info`;
var a = g.append("a")
.attr("href", href);
a.append("text")