YARN-7475. Fix Container log link in new YARN UI. (Sunil G via Subru).

(cherry picked from commit 3c5b46c2ed)
(cherry picked from commit 3e26077848)
This commit is contained in:
Subru Krishnan 2017-11-12 09:18:08 -08:00
parent bfbf94197f
commit 37ae818660
1 changed files with 2 additions and 2 deletions

View File

@ -42,9 +42,9 @@ export default DS.RESTAdapter.extend({
var nodeHttpAddr = splits[0];
var containerId = splits[1];
var filename = splits[2];
this.host = this.get('host') + nodeHttpAddr;
var url = this._buildURL();
url = url + "/containerlogs/" + containerId + "/" + filename;
url = url.replace("{nodeAddress}", nodeHttpAddr) + "/containerlogs/"
+ containerId + "/" + filename;
return url;
},