YARN-8260. [UI2] Per-application tracking URL is no longer available in YARN UI2. Contributed by Sunil G.
(cherry picked from commit cd68c7cc69
)
This commit is contained in:
parent
438c5b12aa
commit
ee19c47d08
|
@ -53,6 +53,8 @@ export default DS.Model.extend({
|
|||
remainingTimeoutInSeconds: DS.attr("number"),
|
||||
applicationExpiryTime: DS.attr("string"),
|
||||
resourceRequests: DS.attr("array"),
|
||||
trackingUI: DS.attr("string"),
|
||||
trackingUrl: DS.attr("string"),
|
||||
|
||||
isFailed: function() {
|
||||
return this.get("finalStatus") === "FAILED";
|
||||
|
|
|
@ -61,7 +61,9 @@ export default DS.JSONAPISerializer.extend({
|
|||
numAMContainerPreempted: 0,
|
||||
clusterUsagePercentage: 0,
|
||||
queueUsagePercentage: 0,
|
||||
currentAppAttemptId: payload.info.YARN_APPLICATION_LATEST_APP_ATTEMPT
|
||||
currentAppAttemptId: payload.info.YARN_APPLICATION_LATEST_APP_ATTEMPT,
|
||||
trackingUI : '',
|
||||
trackingUrl : ''
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -69,7 +69,9 @@ export default DS.JSONAPISerializer.extend({
|
|||
queueUsagePercentage: payload.queueUsagePercentage,
|
||||
currentAppAttemptId: payload.currentAppAttemptId,
|
||||
remainingTimeoutInSeconds: timeoutInSecs,
|
||||
applicationExpiryTime: appExpiryTime
|
||||
applicationExpiryTime: appExpiryTime,
|
||||
trackingUI : payload.trackingUI,
|
||||
trackingUrl : payload.trackingUrl
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -116,6 +116,9 @@
|
|||
<span title="Queue" class="yarn-tooltip"><i class="glyphicon glyphicon-tasks glyphicon-gray" />{{model.app.queue}}</span>
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue