YARN-8260. [UI2] Per-application tracking URL is no longer available in YARN UI2. Contributed by Sunil G.

This commit is contained in:
Rohith Sharma K S 2018-05-09 12:17:04 +05:30
parent 9acfaee1f0
commit cd68c7cc69
4 changed files with 11 additions and 2 deletions

View File

@ -53,6 +53,8 @@ export default DS.Model.extend({
remainingTimeoutInSeconds: DS.attr("number"), remainingTimeoutInSeconds: DS.attr("number"),
applicationExpiryTime: DS.attr("string"), applicationExpiryTime: DS.attr("string"),
resourceRequests: DS.attr("array"), resourceRequests: DS.attr("array"),
trackingUI: DS.attr("string"),
trackingUrl: DS.attr("string"),
isFailed: function() { isFailed: function() {
return this.get("finalStatus") === "FAILED"; return this.get("finalStatus") === "FAILED";

View File

@ -61,7 +61,9 @@ export default DS.JSONAPISerializer.extend({
numAMContainerPreempted: 0, numAMContainerPreempted: 0,
clusterUsagePercentage: 0, clusterUsagePercentage: 0,
queueUsagePercentage: 0, queueUsagePercentage: 0,
currentAppAttemptId: payload.info.YARN_APPLICATION_LATEST_APP_ATTEMPT currentAppAttemptId: payload.info.YARN_APPLICATION_LATEST_APP_ATTEMPT,
trackingUI : '',
trackingUrl : ''
} }
}; };

View File

@ -69,7 +69,9 @@ export default DS.JSONAPISerializer.extend({
queueUsagePercentage: payload.queueUsagePercentage, queueUsagePercentage: payload.queueUsagePercentage,
currentAppAttemptId: payload.currentAppAttemptId, currentAppAttemptId: payload.currentAppAttemptId,
remainingTimeoutInSeconds: timeoutInSecs, remainingTimeoutInSeconds: timeoutInSecs,
applicationExpiryTime: appExpiryTime applicationExpiryTime: appExpiryTime,
trackingUI : payload.trackingUI,
trackingUrl : payload.trackingUrl
} }
}; };

View File

@ -116,6 +116,9 @@
<span title="Queue" class="yarn-tooltip"><i class="glyphicon glyphicon-tasks glyphicon-gray" />{{model.app.queue}}</span> <span title="Queue" class="yarn-tooltip"><i class="glyphicon glyphicon-tasks glyphicon-gray" />{{model.app.queue}}</span>
</div> </div>
<div>Priority {{model.app.priority}}</div> <div>Priority {{model.app.priority}}</div>
{{#if model.app.trackingUrl}}
<div><a href="{{model.app.trackingUrl}}" target="_blank">{{model.app.trackingUI}}</a></div>
{{/if}}
</div> </div>
</div> </div>
</div> </div>