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

This commit is contained in:
Subru Krishnan 2017-11-12 09:18:08 -08:00
parent 5cd92ed555
commit 3c5b46c2ed
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;
},