-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
Conversation
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 = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is never used?
There was a problem hiding this comment.
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.
Thank you, @yaooqinn . Now, it's much simplied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you, @yaooqinn . Merged to master. |
### 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>
### 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>
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
AFTER
Does this PR introduce any user-facing change?
No. This is a new link and UI.
How was this patch tested?
Manually.
Was this patch authored or co-authored using generative AI tooling?
No