From 034da8fc97f01b8207de945828a28f25cadd77b0 Mon Sep 17 00:00:00 2001 From: Rohith Sharma K S Date: Wed, 18 Apr 2018 13:33:59 +0530 Subject: [PATCH] YARN-8171. [UI2] AM Node link from attempt page should not redirect to new tab. Contributed by Sunil G. --- .../src/main/webapp/app/models/yarn-app-attempt.js | 5 +++++ .../webapp/app/templates/components/app-attempt-table.hbs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app-attempt.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app-attempt.js index dd95765719..cffe19839c 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app-attempt.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app-attempt.js @@ -140,4 +140,9 @@ export default DS.Model.extend({ return this.get("state"); }.property(), + masterNodeURL: function() { + var addr = encodeURIComponent(this.get("nodeHttpAddress")); + return `#/yarn-node/${this.get("nodeId")}/${addr}/info/`; + }.property("nodeId", "nodeHttpAddress"), + }); diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/app-attempt-table.hbs b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/app-attempt-table.hbs index d33bf2f975..c02c6f7e46 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/app-attempt-table.hbs +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/app-attempt-table.hbs @@ -53,7 +53,7 @@ {{#if attempt.nodeHttpAddress}} AM Node Web UI - {{attempt.nodeHttpAddress}} + {{attempt.nodeHttpAddress}} {{/if}} {{#if attempt.logsLink}}