-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21372] spark writes one log file even I set the number of spark_rotate_log to 0 #18599
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,6 +78,12 @@ spark_rotate_log () | |
| if [ -n "$2" ]; then | ||
| num=$2 | ||
| fi | ||
|
|
||
| expr $num + 0 &>/dev/null | ||
| if [ $? -ne 0 ] || [ $num -eq 0 ]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you trying to verify if
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @srowen |
||
| num=5 | ||
| fi | ||
|
|
||
| if [ -f "$log" ]; then # rotate logs | ||
| while [ $num -gt 1 ]; do | ||
| prev=`expr $num - 1` | ||
|
|
||
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.
@srowen
There provide a param,num, to set the number of logfile,but it wasn't used in line 179.Since it doesn't work,can I remove the param "num" and use it just as a variable?