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-46870][CORE] Support Spark Master Log UI #44890

Closed
wants to merge 2 commits into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jan 26, 2024

What changes were proposed in this pull request?

This PR aims to support Spark Master Log UI.

Why are the changes needed?

This is a new feature to allow the users to access the master log like the following. The value of Status, e.g., ALIVE, has a new link for log UI.

BEFORE

Screenshot 2024-01-25 at 7 30 07 PM

AFTER

Screenshot 2024-01-25 at 7 28 59 PM

Screenshot 2024-01-25 at 7 29 21 PM

Does this PR introduce any user-facing change?

No. This is a new link and UI.

How was this patch tested?

Manually.

$ sbin/start-master.sh

Was this patch authored or co-authored using generative AI tooling?

No

@dongjoon-hyun
Copy link
Member Author

Could you review this too, @yaooqinn ?

private[ui] class LogPage(parent: MasterWebUI) extends WebUIPage("logPage") with Logging {
private val defaultBytes = 100 * 1024

def renderLog(request: HttpServletRequest): String = {
Copy link
Member

Choose a reason for hiding this comment

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

This is never used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, right. Thanks. I didn't include /log at MasterWebUI because Master needs no proxy unlike Worker, but I missed this part. Let me remove this.

@dongjoon-hyun
Copy link
Member Author

Thank you, @yaooqinn . Now, it's much simplied.

Copy link
Member

@yaooqinn yaooqinn left a comment

Choose a reason for hiding this comment

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

LGTM

@dongjoon-hyun
Copy link
Member Author

Thank you, @yaooqinn . Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-46870 branch January 26, 2024 05:16
szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Feb 7, 2024
### What changes were proposed in this pull request?

This PR aims to support `Spark Master` Log UI.

### Why are the changes needed?

This is a new feature to allow the users to access the master log like the following. The value of `Status`, e.g., `ALIVE`, has a new link for log UI.

**BEFORE**

![Screenshot 2024-01-25 at 7 30 07 PM](https://github.com/apache/spark/assets/9700541/2c263944-ebfa-49bb-955f-d9a022e23cba)

**AFTER**

![Screenshot 2024-01-25 at 7 28 59 PM](https://github.com/apache/spark/assets/9700541/8d096261-3a31-4746-b52b-e01cfcdf3237)

![Screenshot 2024-01-25 at 7 29 21 PM](https://github.com/apache/spark/assets/9700541/fc4d3c10-8695-4529-a92b-6ab477c961da)

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

No. This is a new link and UI.

### How was this patch tested?

Manually.

```
$ sbin/start-master.sh
```

### Was this patch authored or co-authored using generative AI tooling?

No

Closes apache#44890 from dongjoon-hyun/SPARK-46870.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dongjoon-hyun added a commit to apache/spark-kubernetes-operator that referenced this pull request Aug 26, 2024
### What changes were proposed in this pull request?

This PR aims to remove `SPARK_NO_DAEMONIZE` in favor of live log UIs.
- apache/spark#44890
- apache/spark#44888

### Why are the changes needed?

Spark Master/Worker supports live log UIs already. A user doesn't need to use `kubectl` to access K8s log.

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

No.

### How was this patch tested?

Manual review.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #103 from dongjoon-hyun/SPARK-49388.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

2 participants