hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wan...@apache.org
Subject [08/50] [abbrv] hadoop git commit: YARN-5500. [YARN-3368] ‘Master node' link under application tab is broken. (Akhil P B Tan via Sunil G)
Date Thu, 27 Oct 2016 19:11:52 GMT
YARN-5500. [YARN-3368]  ‘Master node' link under application tab is broken. (Akhil P B Tan
via Sunil G)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ebe87bcd
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ebe87bcd
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ebe87bcd

Branch: refs/heads/YARN-3368
Commit: ebe87bcd4993117074262c5ce9963aed8ff5ad3e
Parents: b5ef411
Author: sunilg <sunilg@apache.org>
Authored: Thu Oct 27 14:19:44 2016 +0530
Committer: Wangda Tan <wangda@apache.org>
Committed: Thu Oct 27 12:10:57 2016 -0700

----------------------------------------------------------------------
 .../src/main/webapp/app/controllers/yarn-app.js             | 9 ++++++++-
 .../src/main/webapp/app/templates/yarn-app.hbs              | 4 ++--
 2 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/ebe87bcd/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-app.js
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-app.js
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-app.js
index f6b9404..309c895 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-app.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/controllers/yarn-app.js
@@ -33,6 +33,13 @@ export default Ember.Controller.extend({
       routeName: 'yarn-app',
       model: appId
     }];
-  })
+  }),
 
+  amHostHttpAddressFormatted: function() {
+    var amHostAddress = this.get('model.app.amHostHttpAddress');
+    if (amHostAddress.indexOf('http://') < 0) {
+      amHostAddress = 'http://' + amHostAddress;
+    }
+    return amHostAddress;
+  }.property('model.app.amHostHttpAddress')
 });

http://git-wip-us.apache.org/repos/asf/hadoop/blob/ebe87bcd/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app.hbs
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app.hbs
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app.hbs
index 9e92fc1..acf00d1 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app.hbs
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app.hbs
@@ -172,8 +172,8 @@
 
               <tbody>
               <tr>
-                <td><a href={{model.app.amContainerLogs}}>Link</a></td>
-                <td><a href={{model.app.amHostHttpAddress}}>Link</a></td>
+                <td><a href={{model.app.amContainerLogs}} target="_blank">Link</a></td>
+                <td><a href={{amHostHttpAddressFormatted}} target="_blank">Link</a></td>
                 <td>{{model.app.amNodeLabelExpression}}</td>
               </tr>
               </tbody>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message