-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-26288][CORE] Restore RegisteredExecutors information for External shuffle service in Standalone/Kubernetes backend when the service is restarted #23393
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
105a321
add initRegisteredExecutorsDB
weixiuli b9ff5aa
Check all the dirs and use the dir which has be used
weixiuli 628ffa5
Remove some registeredExecutors information of DB in external shuffle…
weixiuli d1b54fc
VisibleForTesting
weixiuli 2ba3695
findRegisteredExecutorsDBFile
weixiuli 8424852
fix ExternalShuffleServiceDbSuite
weixiuli d53c52a
fix style
weixiuli c681bfb
add WorkDirCleanup test
weixiuli 29804eb
fix small
weixiuli 7e87f64
add it to the docs
weixiuli 7b8b31c
fix style
weixiuli cb78728
fix style
weixiuli ed9a842
change spark-standalone.md
weixiuli 1f94b86
revert default
weixiuli 475d278
fix small
weixiuli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add it to the docs
- Loading branch information
commit 7e87f64c3ce878078728c7585d2590085c7440c8
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,10 +236,11 @@ SPARK_WORKER_OPTS supports the following system properties: | |
| <tr><th>Property Name</th><th>Default</th><th>Meaning</th></tr> | ||
| <tr> | ||
| <td><code>spark.worker.cleanup.enabled</code></td> | ||
| <td>false</td> | ||
| <td>true</td> | ||
| <td> | ||
| Enable periodic cleanup of worker / application directories. Note that this only affects standalone | ||
| mode, as YARN works differently. Only the directories of stopped applications are cleaned up. | ||
| This must be enabled if spark.shuffle.service.db.enabled is "true" | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
|
|
@@ -260,6 +261,17 @@ SPARK_WORKER_OPTS supports the following system properties: | |
| especially if you run jobs very frequently. | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><spark.shuffle.service.db.enabled</code></td> | ||
| <td>true</td> | ||
| <td> | ||
| Enable record RegisteredExecutors information by leveldb, which can be reloaded and | ||
| used again when the external shuffle service is restarted. Note that this only affects standalone | ||
| mode, its has always on for yarn. We should Enable `spark.worker.cleanup.enabled` to remove the entry | ||
| (It will leave an entry in the DB forever when an application is stopped while the external shuffle | ||
| service is down) in the leveldb with WorkDirCleanup. It may be removed in the future. | ||
|
||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td><code>spark.storage.cleanupFilesAfterExecutorExit</code></td> | ||
| <td>true</td> | ||
|
|
||
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.
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.
Why have you changed this default value in the documentation? As I see it is still false.
spark/core/src/main/scala/org/apache/spark/internal/config/Worker.scala
Lines 31 to 33 in b154233
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.
sorry,i missed it.
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.
I believe attila meant to revert your change to the docs, not to change the default