Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Aug 7, 2019

What changes were proposed in this pull request?

By SPARK-17019, On Heap Memory and Off Heap Memory are introduced as optional metrics.
But they are not displayed because they are made display: none in css and there are no way to appear them.

I know #22595 also try to resolve this issue but that will use additional-metrics.js.
Initially, additional-metrics.js is created for StagePage but StagePage currently uses stagepage.js for its additional metrics to be toggle because DataTable (one of jQuery plugins) was introduced and we needed another mechanism to add/remove columns for additional metrics.

Now that ExecutorsPage also uses DataTable so it might be better to introduce same mechanism as StagePage for additional metrics.

Screenshot from 2019-08-10 05-37-25

And then, we can remove additional-metrics.js which is no longer used from anywhere.

How was this patch tested?

After this change is applied, I confirmed ExecutorsPage and StagePage are properly rendered and all checkboxes for additional metrics work.

@SparkQA
Copy link

SparkQA commented Aug 7, 2019

Test build #108757 has finished for PR 25374 at commit a8b3328.

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

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Hi, @sarutak .
So, do you mean the feature is refactored correctly?

  1. expand-additional-metrics is used [SPARK-17019][CORE] Expose on-heap and off-heap memory usage in various places (a449162).
  2. According to the comment, #22595 (comment), and your comment, it's not working as of now.

I'm wondering if we keep the same feature which SPARK-17019 aimed originally. Could you give me some pointer? For GPU support, #25037 wants to this additional metric features. So, I want to be careful before removal.

cc @jerryshao , @tgravescs

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Aug 7, 2019

Also, could you file a JIRA issue since this might cause some issues later? JIRA ID is a better pointer than the git hash in that case.

@tgravescs
Copy link
Contributor

I agree with @dongjoon-hyun please file a jira for this. It does looks like its something I missed when we did the StagePage.

I kind of think the new PR is probably easier for users to read with separate columns but your point is valid, it would be nice to know if there is anything else missing there. Also the last comments on the new PR are to separate out columns, not sure if this code would help with that at all, but I'm guessing we can reuse code from the Stage Page if you want to keep the look the same.

@sarutak sarutak changed the title [WEBUI] Remove additional-metrics.js [SPARK-28647][WEBUI] Remove additional-metrics.js Aug 7, 2019
Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Looks OK to me.

@sarutak
Copy link
Member Author

sarutak commented Aug 7, 2019

OK, I've filed.
@dongjoon-hyun

expand-additional-metrics is used [SPARK-17019][CORE] Expose on-heap and off-heap memory usage in various places (a449162).

It seems expand-additionl-metrics is not used in the current code but...

According to the comment, #22595 (comment), and your comment, it's not working as of now.
Yes, this PR seems to conflict with #22595.

So, how about having check-boxes for toggle like implemented in Stage Page?

@sarutak sarutak force-pushed the remove-additional-metrics.js branch from 3c7b9d4 to a8b3328 Compare August 7, 2019 19:24
@unidashinc
Copy link

LGTM

@SparkQA
Copy link

SparkQA commented Aug 7, 2019

Test build #108782 has finished for PR 25374 at commit 3c7b9d4.

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

@SparkQA
Copy link

SparkQA commented Aug 7, 2019

Test build #108783 has finished for PR 25374 at commit a8b3328.

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

@sarutak
Copy link
Member Author

sarutak commented Aug 9, 2019

@dongjoon-hyun If we need a mechanism for optional metrics for ExecutorPage, we can do like the latest commit and we can get like a folowing UI.

Screenshot from 2019-08-10 05-37-25

@SparkQA
Copy link

SparkQA commented Aug 9, 2019

Test build #108895 has finished for PR 25374 at commit b5be743.

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

@srowen
Copy link
Member

srowen commented Aug 11, 2019

@sarutak go ahead and update the title/description to reflect what this is adding now

@sarutak
Copy link
Member Author

sarutak commented Aug 12, 2019

@srowen Thanks for reminding me. I've updated.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-28647][WEBUI] Remove additional-metrics.js [SPARK-28647][WEBUI] Recover additional metric feature and remove additional-metrics.js Aug 12, 2019
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Great! Thank you, @sarutak . I checked the fixed UI.

Also, thank you, @srowen , @tgravescs , @hacker131 .

Merged to master.

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Aug 13, 2019

Could you make a backporting PR please, @sarutak ? There is a conflict on branch-2.4.

@sarutak
Copy link
Member Author

sarutak commented Aug 13, 2019

@dongjoon-hyun O.K. I'll do it this week.

@dongjoon-hyun
Copy link
Member

Thank you so much, @sarutak !

dongjoon-hyun pushed a commit that referenced this pull request Aug 18, 2019
This PR is for backporting SPARK-28647(#25374) to branch-2.4.
The original PR removed `additional-metrics.js` but branch-2.4 still uses it so I don't remove it and related things for branch-2.4.

### What changes were proposed in this pull request?
Added checkboxes to enable users to select which optional metrics (`On Heap Memory`, `Off Heap Memory` and `Select All` in this case) to be shown in `ExecuorPage`.

### Why are the changes needed?
By SPARK-17019, `On Heap Memory` and `Off Heap Memory` are introduced as optional metrics. But they are not displayed because they are made `display: none` in css and there are no way to appear them.

### Does this PR introduce any user-facing change?
The previous `ExecutorPage` doesn't show optional metrics.
This change adds checkboxes to `ExecutorPage` for optional metrics.
We can choose which metrics should be shown by checking corresponding checkboxes.
![Screenshot from 2019-08-18 03-56-09](https://user-images.githubusercontent.com/4736016/63216148-2bfadb80-c16c-11e9-81e1-e1e66198dd6c.png)

### How was this patch tested?
Manual test.

Closes #25484 from sarutak/backport-SPARK-28647-branch-2.4.

Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
rluta pushed a commit to rluta/spark that referenced this pull request Sep 17, 2019
This PR is for backporting SPARK-28647(apache#25374) to branch-2.4.
The original PR removed `additional-metrics.js` but branch-2.4 still uses it so I don't remove it and related things for branch-2.4.

### What changes were proposed in this pull request?
Added checkboxes to enable users to select which optional metrics (`On Heap Memory`, `Off Heap Memory` and `Select All` in this case) to be shown in `ExecuorPage`.

### Why are the changes needed?
By SPARK-17019, `On Heap Memory` and `Off Heap Memory` are introduced as optional metrics. But they are not displayed because they are made `display: none` in css and there are no way to appear them.

### Does this PR introduce any user-facing change?
The previous `ExecutorPage` doesn't show optional metrics.
This change adds checkboxes to `ExecutorPage` for optional metrics.
We can choose which metrics should be shown by checking corresponding checkboxes.
![Screenshot from 2019-08-18 03-56-09](https://user-images.githubusercontent.com/4736016/63216148-2bfadb80-c16c-11e9-81e1-e1e66198dd6c.png)

### How was this patch tested?
Manual test.

Closes apache#25484 from sarutak/backport-SPARK-28647-branch-2.4.

Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Sep 26, 2019
This PR is for backporting SPARK-28647(apache#25374) to branch-2.4.
The original PR removed `additional-metrics.js` but branch-2.4 still uses it so I don't remove it and related things for branch-2.4.

### What changes were proposed in this pull request?
Added checkboxes to enable users to select which optional metrics (`On Heap Memory`, `Off Heap Memory` and `Select All` in this case) to be shown in `ExecuorPage`.

### Why are the changes needed?
By SPARK-17019, `On Heap Memory` and `Off Heap Memory` are introduced as optional metrics. But they are not displayed because they are made `display: none` in css and there are no way to appear them.

### Does this PR introduce any user-facing change?
The previous `ExecutorPage` doesn't show optional metrics.
This change adds checkboxes to `ExecutorPage` for optional metrics.
We can choose which metrics should be shown by checking corresponding checkboxes.
![Screenshot from 2019-08-18 03-56-09](https://user-images.githubusercontent.com/4736016/63216148-2bfadb80-c16c-11e9-81e1-e1e66198dd6c.png)

### How was this patch tested?
Manual test.

Closes apache#25484 from sarutak/backport-SPARK-28647-branch-2.4.

Authored-by: Kousuke Saruta <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
gengliangwang pushed a commit that referenced this pull request Oct 24, 2019
### What changes were proposed in this pull request?
On clicking job description in jobs page, the description was not shown fully.
Add the function for the click event on description.

### Why are the changes needed?
when there is a long description of a job, it cannot be seen fully in the UI.
The feature was added in #24145
But it is missed after #25374

Before change:
![Screenshot from 2019-10-23 11-23-00](https://user-images.githubusercontent.com/51401130/67361914-827b0080-f587-11e9-9181-d49a6a836046.png)
After change: on Double click over decription
![Screenshot from 2019-10-23 11-20-02](https://user-images.githubusercontent.com/51401130/67361936-932b7680-f587-11e9-9e59-d290abed4b70.png)

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

No

### How was this patch tested?
Manually test

Closes #26222 from PavithraRamachandran/jobs_description_tooltip.

Authored-by: Pavithra Ramachandran <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
PavithraRamachandran added a commit to PavithraRamachandran/spark that referenced this pull request Oct 31, 2019
On clicking job description in jobs page, the description was not shown fully.
Add the function for the click event on description.

when there is a long description of a job, it cannot be seen fully in the UI.
The feature was added in apache#24145
But it is missed after apache#25374

Before change:
![Screenshot from 2019-10-23 11-23-00](https://user-images.githubusercontent.com/51401130/67361914-827b0080-f587-11e9-9181-d49a6a836046.png)
After change: on Double click over decription
![Screenshot from 2019-10-23 11-20-02](https://user-images.githubusercontent.com/51401130/67361936-932b7680-f587-11e9-9e59-d290abed4b70.png)

No

Manually test

Closes apache#26222 from PavithraRamachandran/jobs_description_tooltip.

Authored-by: Pavithra Ramachandran <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
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