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

(cherry picked from commit 3c5b46c2edd69bb238d635ae61ff91656dec23df)
This commit is contained in:
Subru Krishnan 2017-11-12 09:18:08 -08:00
parent ff9f7fcf7f
commit 3e26077848

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;
},