Skip to content
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

[SPARK-15885] [Web UI] Provide links to executor logs from stage details page in UI #13664

Closed
wants to merge 4 commits into from

Conversation

tmagrino
Copy link
Contributor

@tmagrino tmagrino commented Jun 14, 2016

What changes were proposed in this pull request?

Added links to logs (or an indication that there are no logs) for entries which list an executor in the stage details page of the UI.

This helps streamline the workflow where a user views a stage details page and determines that they would like to see the associated executor log for further examination. Previously, a user would have to cross reference the executor id listed on the stage details page with the corresponding entry on the executors tab.

Link to the JIRA: https://issues.apache.org/jira/browse/SPARK-15885

How was this patch tested?

Ran existing unit tests.
Ran test queries on a platform which did not record executor logs and again on a platform which did record executor logs and verified that the new table column was populated with "No Logs Found" and links to the logs (which were verified as linking to the appropriate files), respectively.

Attached is a screenshot of the UI page with no links, with the new columns highlighted. Additional screenshot of these columns with the populated links.

Without links:
screen shot 2016-06-13 at 4 19 49 pm 2

With links:
with logs

This contribution is my original work and I license the work to the project under the Apache Spark project's open source license.

@tejasapatil
Copy link
Contributor

ok to test

<td>
{val logs = parent.executorsListener.executorToLogUrls.getOrElse(k, Map.empty)
if (logs.isEmpty) {
"No Logs Found"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The executors page currently leaves this blank when there are no logs, for consistency across the ui it may be better to remove this string.

@ajbozarth
Copy link
Member

Overall I like this addition and think this looks good, just a few small notes above on UI consistency.

@ajbozarth
Copy link
Member

Jenkins, test this please

@tmagrino
Copy link
Contributor Author

Updated images below.

Without logs:
updated without logs

With logs:
updated with logs

@ajbozarth
Copy link
Member

LGTM

@tmagrino
Copy link
Contributor Author

I'm going to close this and create a new PR against master.

@tmagrino tmagrino closed this Jun 22, 2016
asfgit pushed a commit that referenced this pull request Jul 7, 2016
…ls page in UI

## What changes were proposed in this pull request?

This moves over old PR #13664 to target master rather than branch-1.6.

Added links to logs (or an indication that there are no logs) for entries which list an executor in the stage details page of the UI.

This helps streamline the workflow where a user views a stage details page and determines that they would like to see the associated executor log for further examination.  Previously, a user would have to cross reference the executor id listed on the stage details page with the corresponding entry on the executors tab.

Link to the JIRA: https://issues.apache.org/jira/browse/SPARK-15885

## How was this patch tested?

Ran existing unit tests.
Ran test queries on a platform which did not record executor logs and again on a platform which did record executor logs and verified that the new table column was empty and links to the logs (which were verified as linking to the appropriate files), respectively.

Attached is a screenshot of the UI page with no links, with the new columns highlighted.  Additional screenshot of these columns with the populated links.

Without links:
![updated without logs](https://cloud.githubusercontent.com/assets/1450821/16059721/2b69dbaa-3239-11e6-9eed-e539764ca159.png)

With links:
![updated with logs](https://cloud.githubusercontent.com/assets/1450821/16059725/32c6e316-3239-11e6-90bd-2553f43f7779.png)

This contribution is my original work and I license the work to the project under the Apache Spark project's open source license.

Author: Tom Magrino <tmagrino@fb.com>

Closes #13861 from tmagrino/uilogstweak.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants