-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31759][Deploy] Support configurable max number of rotate logs for spark daemons #28580
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
Conversation
…for spark daemons
|
cc @srowen @cloud-fan @dongjoon-hyun @HyukjinKwon @maropu thanks |
|
Test build #122845 has finished for PR 28580 at commit
|
maropu
left a comment
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.
HyukjinKwon
left a comment
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.
Looks good. Just to make doubly sure, can you update how you tested in the PR description?
|
@HyukjinKwon updated. thanks for approving |
|
Let me merge it. There's no test for this script in PR builders. |
|
Merged to master. |
|
Test build #122890 has finished for PR 28580 at commit
|
What changes were proposed in this pull request?
in
spark-daemon.sh,spark_rotate_log()accepts$2as a custom setting for the number of maximum rotate log files, but this part of code is actually never used.This PR adds
SPARK_LOG_MAX_FILESenvironment variable to represent the maximum log files of Spark daemons can rotate to.Why are the changes needed?
the logs files that all spark daemons are hardcoded as 5, but it supposed to be configurable
Does this PR introduce any user-facing change?
yes, SPARK_LOG_MAX_FILES is added to represent the maximum log files of Spark daemons can rotate to.
How was this patch tested?
verify locally for the added shell script: