Skip to content

[SPARK-29323][WEBUI] Add tooltip for The Executors Tab's column names in the Spark history server Page#25994

Closed
liucht-inspur wants to merge 3 commits intoapache:masterfrom
liucht-inspur:master
Closed

[SPARK-29323][WEBUI] Add tooltip for The Executors Tab's column names in the Spark history server Page#25994
liucht-inspur wants to merge 3 commits intoapache:masterfrom
liucht-inspur:master

Conversation

@liucht-inspur
Copy link
Contributor

@liucht-inspur liucht-inspur commented Oct 2, 2019

What changes were proposed in this pull request?

This PR is Adding tooltip for The Executors Tab's column names include RDD Blocks, Disk Used,Cores, Activity Tasks, Failed Tasks , Complete Tasks, Total Tasks in the history server Page.
https://issues.apache.org/jira/browse/SPARK-29323

image

I have modify the following code in executorspage-template.html
Before:

RDD Blocks Disk Used Cores Active Tasks Failed Tasks Complete Tasks Total Tasks

image

After:

RDD Blocks Disk Used Cores Active Tasks Failed Tasks Complete Tasks Total Tasks

image

Why are the changes needed?

the spark Executors of history Tab page, the Summary part shows the line in the list of title, but format is irregular.
Some column names have tooltip, such as Storage Memory, Task Time(GC Time), Input, Shuffle Read,
Shuffle Write and Blacklisted, but there are still some list names that have not tooltip. They are RDD Blocks, Disk Used,Cores, Activity Tasks, Failed Tasks , Complete Tasks and Total Tasks. oddly, Executors section below,All the column names Contains the column names above have tooltip .
It's important for open source projects to have consistent style and user-friendly UI, and I'm working on keeping it consistent And more user-friendly.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual tests for Chrome, Firefox and Safari

Authored-by: liucht-inspur liucht@inspur.com
Signed-off-by: liucht-inspur liucht@inspur.com

RDD Blocks, Disk Used,Cores, Activity Tasks, Failed Tasks , Complete
Tasks, Total Tasks in the history server Page.

Before:

<th>RDD Blocks</th>
<th>Disk Used</th>
<th>Cores</th>
<th>Active Tasks</th>
<th>Failed Tasks</th>
<th>Complete Tasks</th>
<th>Total Tasks</th>

After:

<th><span data-toggle="tooltip" data-placement="top" title="RDD
Blocks">RDD Blocks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Disk
Used">Disk Used</span></th>
<th><span data-toggle="tooltip" data-placement="top"
title="Cores">Cores</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Active
Tasks">Active Tasks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Failed
Tasks">Failed Tasks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Complete
Tasks">Complete Tasks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Total
Tasks">Total Tasks</span></th>

	### Why are the changes needed?

	the spark Executors of history Tab page, the Summary part shows
	the line in the list of title, but format is irregular.
	Some column names have tooltip, such as Storage Memory, Task
	Time(GC Time), Input, Shuffle Read,
	Shuffle Write and Blacklisted, but there are still some list
	names that have not tooltip. They are RDD Blocks, Disk
	Used,Cores, Activity Tasks, Failed Tasks , Complete Tasks and
	Total Tasks. oddly, Executors section below,All the column names
	Contains the column names above have tooltip .
	It's important for open source projects to have consistent style
	and user-friendly UI, and I'm working on keeping it consistent
	And more user-friendly.

	### Does this PR introduce any user-facing change?

	No.

	### How was this patch tested?

	Manual tests for Chrome, Firefox and Safari

        Authored-by: liucht-inspur <liucht@inspur.com>
        Signed-off-by: liucht-inspur <liucht@inspur.com>
Copy link
Contributor Author

@liucht-inspur liucht-inspur left a comment

Choose a reason for hiding this comment

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

Please help to review this change,thanks.

@srowen
Copy link
Member

srowen commented Oct 3, 2019

Where does the tooltip text come from? I'm missing that part.

@liucht-inspur
Copy link
Contributor Author

@srowen They come from the same column names in the Executors like that under the red line:
image

@liucht-inspur
Copy link
Contributor Author

Summary code as

image

PK Executors code as

image
image

@liucht-inspur
Copy link
Contributor Author

liucht-inspur commented Oct 3, 2019

Where does the tooltip text come from? I'm missing that part.

The same text Like the Executors' column names have tooltip

@srowen
Copy link
Member

srowen commented Oct 3, 2019

I mean, what text would the tooltip now show for the additional columns?

@liucht-inspur
Copy link
Contributor Author

liucht-inspur commented Oct 3, 2019

I mean, what text would the tooltip now show for the additional columns?

@srowen
I copy the code from Executors table's column tooltip in the same file,Before I revised it, it is like this

Before modification
Executors code as

image
image

@srowen
Copy link
Member

srowen commented Oct 3, 2019

I don't think that answers the question. What is the new tooltip that appears on what columns?

@liucht-inspur
Copy link
Contributor Author

liucht-inspur commented Oct 4, 2019

Can one of the admins verify this patch?

I don't think that answers the question. What is the new tooltip that appears on what columns?

Hello @srowen , I had screenshots and added comments, hope they are valuable to you,thanks!

image

@liucht-inspur
Copy link
Contributor Author

@srowen My change is that
the column RDD Blocks add tooltip text 'RDD Blocks',
the column Disk Used add tooltip text 'Disk Used',
the column Cores add tooltip text 'Cores',
the column Active Tasks add tooltip text 'Active Tasks',
the column Failed Tasks add tooltip text 'Failed Tasks',
the column Complete Tasks add tooltip text 'Complete Tasks',
the column Total Tasks add tooltip text 'Total Tasks',

@srowen
Copy link
Member

srowen commented Oct 4, 2019

What is the point of the tooltip then? it just repeats the column name.

@liucht-inspur
Copy link
Contributor Author

What is the point of the tooltip then? it just repeats the column name.

@srowen It's important for open source projects to have consistent style and user-friendly UI, and I'm working on keeping it consistent And more user-friendly.

@srowen
Copy link
Member

srowen commented Oct 4, 2019

Hm, no I don't think that adds anything to user-friendliness. It's just a redundant popup. If you made the tooltips meaningful, maybe so.

@liucht-inspur
Copy link
Contributor Author

So, can you give some suggestions about the tootip text?

@liucht-inspur
Copy link
Contributor Author

Hm, no I don't think that adds anything to user-friendliness. It's just a redundant popup. If you made the tooltips meaningful, maybe so.

@srowen I think it's necessary to be consistent in any case.

@srowen
Copy link
Member

srowen commented Oct 4, 2019

I don't think there's much meaningful to say in a tooltip here, so no I just wouldn't make this change.

@liucht-inspur
Copy link
Contributor Author

@srowen For the same problem, I suggest adding more information in the columns of tooltip Active Tasks and Failed Tasks, because these two columns have different background colors, such as blue, red, and white, and they have different transparency, which is really confusing, what do you think?
See the columns of different background colors shown in the figure below
image

@srowen
Copy link
Member

srowen commented Oct 8, 2019

Yes, explaining the colors would be a reasonable role for a tooltip.

@liucht-inspur
Copy link
Contributor Author

@srowen ok,thank you ! I have finished this change,

two changes:
1、in Summary
before:
<th>Active Tasks</th>
<th>Failed Tasks</th>

after:
<th><span data-toggle="tooltip" data-placement="top" title="Active Tasks show in shaded blue. % of color opacity range from 0 to maxTasks.">Active Tasks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Failed Tasks show in shaded red. Color opacity reach max at 10% of Total Tasks.">Failed Tasks</span></th>

added tooltip for Active Tasks and Failed Tasks ,the titles are
"Active Tasks show in shaded blue. % of color opacity range from 0 to maxTasks." and "Failed Tasks show in shaded red. Color opacity reach max at 10% of Total Tasks."

2、in Executors
before:
<th><span data-toggle="tooltip" data-placement="top" title="Active Tasks">Active Tasks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Failed Tasks">Failed Tasks</span></th>

after:
<th><span data-toggle="tooltip" data-placement="top" title="Active Tasks show in shaded blue. % of color opacity range from 0 to maxTasks.">Active Tasks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Failed Tasks show in shaded red. Color opacity reach max at 10% of Total Tasks.">Failed Tasks</span></th>

added more information for tooltip

Please help to review this change,thanks.

<th>Cores</th>
<th>Active Tasks</th>
<th>Failed Tasks</th>
<th><span data-toggle="tooltip" data-placement="top" title="Active Tasks show in shaded blue. % of color opacity range from 0 to maxTasks.">Active Tasks</span></th>
Copy link
Member

Choose a reason for hiding this comment

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

I don't think 'maxTasks' is meaningful to a user, and it's already clear it's blue. How about more like:
"Number of tasks currently executing. Darker shading highlights executors with more active tasks."

<th>Active Tasks</th>
<th>Failed Tasks</th>
<th><span data-toggle="tooltip" data-placement="top" title="Active Tasks show in shaded blue. % of color opacity range from 0 to maxTasks.">Active Tasks</span></th>
<th><span data-toggle="tooltip" data-placement="top" title="Failed Tasks show in shaded red. Color opacity reach max at 10% of Total Tasks.">Failed Tasks</span></th>
Copy link
Member

Choose a reason for hiding this comment

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

Likewise, maybe:
"Number of tasks that have failed on this executor. Darker shading highlights executors with a high proportion of failed tasks."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, they are more suitable,thank you!

@liucht-inspur
Copy link
Contributor Author

@srowen Thanks again, I have finished the change.

@liucht-inspur liucht-inspur requested a review from srowen October 10, 2019 13:37
@srowen
Copy link
Member

srowen commented Oct 10, 2019

We'll have to wait for Jenkins to come back, to evaluate this with tests, but I'm sure it will be OK.

@srowen srowen closed this Oct 10, 2019
@srowen srowen reopened this Oct 10, 2019
@liucht-inspur
Copy link
Contributor Author

liucht-inspur commented Oct 11, 2019

cc @wangyum We are waiting for spark's Jenkins to test,can you help to authorize please?

@wangyum
Copy link
Member

wangyum commented Oct 11, 2019

@liucht-inspur
Copy link
Contributor Author

Ok, I see. We will wait quietly. Thank you all!

@wangyum
Copy link
Member

wangyum commented Oct 12, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Oct 12, 2019

Test build #111957 has finished for PR 25994 at commit 49ffc0c.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member

wangyum commented Oct 12, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Oct 12, 2019

Test build #111968 has finished for PR 25994 at commit 49ffc0c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Oct 12, 2019

Merged to master

@srowen srowen closed this in e94abd7 Oct 12, 2019
@AbhishekNew
Copy link

@liucht-inspur Did u handle the tooltip for the Live UI Page for Spark.

@liucht-inspur
Copy link
Contributor Author

@liucht-inspur Did u handle the tooltip for the Live UI Page for Spark.

Yeah, exactly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants