[SPARK-31759][Deploy] Support configurable max number of rotate logs for spark daemons#28580
Closed
yaooqinn wants to merge 3 commits intoapache:masterfrom
yaooqinn:SPARK-31759
Closed
[SPARK-31759][Deploy] Support configurable max number of rotate logs for spark daemons#28580yaooqinn wants to merge 3 commits intoapache:masterfrom yaooqinn:SPARK-31759
yaooqinn wants to merge 3 commits intoapache:masterfrom
yaooqinn:SPARK-31759
Conversation
…for spark daemons
Member
Author
|
cc @srowen @cloud-fan @dongjoon-hyun @HyukjinKwon @maropu thanks |
|
Test build #122845 has finished for PR 28580 at commit
|
maropu
reviewed
May 20, 2020
maropu
approved these changes
May 20, 2020
HyukjinKwon
reviewed
May 20, 2020
HyukjinKwon
reviewed
May 20, 2020
HyukjinKwon
approved these changes
May 20, 2020
Member
HyukjinKwon
left a comment
There was a problem hiding this comment.
Looks good. Just to make doubly sure, can you update how you tested in the PR description?
Member
Author
|
@HyukjinKwon updated. thanks for approving |
Member
|
Let me merge it. There's no test for this script in PR builders. |
Member
|
Merged to master. |
|
Test build #122890 has finished for PR 28580 at commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: