Skip to content

LIVY-353. Web UI. Added link to Spark UI for Sessions running on Yarn #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
* limitations under the License.
*/

function appIdLink(session) {
var appUiUrl = session.appInfo.sparkUiUrl;
if (appUiUrl != null) {
return '<a href="' + appUiUrl + '">' + session.appId + "</a>";
} else {
return session.appId;
}
}

function tdWrap(str) {
return "<td>" + str + "</td>";
}
Expand All @@ -25,7 +34,7 @@ function loadSessionsTable(sessions) {
$("#interactive-sessions .sessions-table-body").append(
"<tr>" +
tdWrap(session.id) +
tdWrap(session.appId) +
tdWrap(appIdLink(session)) +
tdWrap(session.owner) +
tdWrap(session.proxyUser) +
tdWrap(session.kind) +
Expand All @@ -40,7 +49,7 @@ function loadBatchesTable(sessions) {
$("#batches .sessions-table-body").append(
"<tr>" +
tdWrap(session.id) +
tdWrap(session.appId) +
tdWrap(appIdLink(session)) +
tdWrap(session.state) +
"</tr>"
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ <h4 id="batches-header" class="sessions-template">Batch Sessions</h4>
<thead class="sessions-table-head">
<tr>
<th>Batch Id</th>
<th>Application Id</th>
<th>
<span data-toggle="tooltip"
title="Spark Application Id for this session.
If available, links to Spark Application Web UI">
Application Id
</span>
</th>
<th>
<span data-toggle="tooltip"
title="Session State (not_started, starting, idle, busy,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ <h4 id="interactive-sessions-header" class="sessions-template">Interactive Sessi
<thead class="sessions-table-head">
<tr>
<th>Session Id</th>
<th>Application Id</th>
<th>
<span data-toggle="tooltip"
title="Spark Application Id for this session.
If available, links to Spark Application Web UI">
Application Id
</span>
</th>
<th>
<span data-toggle="tooltip" title="Remote user who submitted this session">
Owner
Expand Down