Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23472][CORE] Add defaultJavaOptions for driver and executor. - #24804
[SPARK-23472][CORE] Add defaultJavaOptions for driver and executor.#24804gaborgsomogyi wants to merge 8 commits into
Conversation
gaborgsomogyi
commented
Jun 5, 2019
cc @vanzin@squito@rdblue since you were involved in the previous PR. I've considered many options but this looks the best from my perspective. |
SparkQA
commented
Jun 5, 2019
Test build #106196 has finished for PR 24804 at commit
|
vanzin
commented
Jun 5, 2019
You'll need to add similar logic to |
gaborgsomogyi
commented
Jun 6, 2019
Somehow I had the feeling this code part works with SparkConf and default fetched with extra (which is wrong). Not sure how this can be made more generic. |
SparkQA
commented
Jun 6, 2019
Test build #106250 has finished for PR 24804 at commit
|
SparkQA
commented
Jun 6, 2019
Test build #106251 has finished for PR 24804 at commit
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vanzin
commented
Jun 24, 2019
BTW it would be good to double check the places where cluster-mode drivers are started and make sure they also pick up the new config. e.g. Which I think would completely ignore the stuff you're adding here... |
* Removed unused config entries * Fallback test added * Fixed Mesos and Rest server property handling
SparkQA
commented
Jun 26, 2019
Test build #106934 has finished for PR 24804 at commit
|
SparkQA
commented
Jun 26, 2019
Test build #106941 has finished for PR 24804 at commit
|
squito
left a comment
There was a problem hiding this comment.
looks ok, though I haven't looked at whether this is getting used everywhere it needs to be yet (marcelo's earlier comment)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Jun 28, 2019
Test build #106993 has finished for PR 24804 at commit
|
gaborgsomogyi
commented
Jun 28, 2019
retest this please |
SparkQA
commented
Jun 28, 2019
Test build #106998 has finished for PR 24804 at commit
|
SparkQA
commented
Jun 28, 2019
Test build #107017 has finished for PR 24804 at commit
|
vanzin
left a comment
There was a problem hiding this comment.
Small doc nit; there's also MesosCoarseGrainedSchedulerBackend.scala which seems easy to fix to add support for this. There might be another spot in standalone that may need a change, but I'm having a hard time following that code... if someone cares about it they can figure it out, I guess.
Uh oh!
There was an error while loading. Please reload this page.
gaborgsomogyi
commented
Jul 1, 2019
I've double checked the mentioned file but as I see it uses and |
SparkQA
commented
Jul 1, 2019
Test build #107067 has finished for PR 24804 at commit
|
vanzin
commented
Jul 10, 2019
You're right, I must have misread it. |
vanzin
commented
Jul 10, 2019
retest this please |
SparkQA
commented
Jul 11, 2019
Test build #107489 has finished for PR 24804 at commit
|
vanzin
commented
Jul 11, 2019
Merging to master. |
This is great! Thank you for fixing on this @gaborgsomogyi and for reviewing @vanzin and @squito! |
## What changes were proposed in this pull request? This PR adds two new config properties: `spark.driver.defaultJavaOptions` and `spark.executor.defaultJavaOptions`. These are intended to be set by administrators in a file of defaults for options like JVM garbage collection algorithm. Users will still set `extraJavaOptions` properties, and both sets of JVM options will be added to start a JVM (default options are prepended to extra options). ## How was this patch tested? Existing + additional unit tests. ``` cd docs/ SKIP_API=1 jekyll build ``` Manual webpage check. Closesapache#24804 from gaborgsomogyi/SPARK-23472. Authored-by: Gabor Somogyi <gabor.g.somogyi@gmail.com> Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
This PR adds two new config properties: `spark.driver.defaultJavaOptions` and `spark.executor.defaultJavaOptions`. These are intended to be set by administrators in a file of defaults for options like JVM garbage collection algorithm. Users will still set `extraJavaOptions` properties, and both sets of JVM options will be added to start a JVM (default options are prepended to extra options). Existing + additional unit tests. ``` cd docs/ SKIP_API=1 jekyll build ``` Manual webpage check. Closesapache#24804 from gaborgsomogyi/SPARK-23472. Authored-by: Gabor Somogyi <gabor.g.somogyi@gmail.com> Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com> Ref: LIHADOOP-55812 RB=2325692 BUG=LIHADOOP-55812 G=spark-reviewers A=ekrogen
What changes were proposed in this pull request?
This PR adds two new config properties:
spark.driver.defaultJavaOptionsandspark.executor.defaultJavaOptions. These are intended to be set by administrators in a file of defaults for options like JVM garbage collection algorithm. Users will still setextraJavaOptionsproperties, and both sets of JVM options will be added to start a JVM (default options are prepended to extra options).How was this patch tested?
Existing + additional unit tests.
Manual webpage check.