-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-34965][BUILD] Remove .sbtopts that duplicately sets the default memory #32062
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
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
cloud-fan
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.
makes sense
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
| declare -a sbt_commands | ||
| declare -a maven_profiles | ||
| declare sbt_default_mem=2048 | ||
| declare sbt_default_mem=4096 |
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.
So here was the default place to set the memory
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Test build #136940 has finished for PR 32062 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #136943 has finished for PR 32062 at commit
|
|
Test build #136946 has finished for PR 32062 at commit
|
|
Test build #136947 has finished for PR 32062 at commit
|
…t memory ### What changes were proposed in this pull request? This PR removes `.sbtopts` (added in #29286) that duplicately sets the default memory. The default memories are set: https://github.com/apache/spark/blob/3b634f66c3e4a942178a1e322ae65ce82779625d/build/sbt-launch-lib.bash#L119-L124 ### Why are the changes needed? This file disables the memory option from the `build/sbt` script: ```bash ./build/sbt -mem 6144 ``` ``` .../jdk-11.0.3.jdk/Contents/Home as default JAVA_HOME. Note, this will be overridden by -java-home if it is set. Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size ``` because it adds these memory options at the last: ```bash /.../bin/java -Xms6144m -Xmx6144m -XX:ReservedCodeCacheSize=256m -Xmx4G -Xss4m -jar build/sbt-launch-1.5.0.jar ``` and Java respects the rightmost memory configurations. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually ran SBT. It will be tested in the CIs in this Pr. Closes #32062 from HyukjinKwon/SPARK-34965. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 2eda1c6) Signed-off-by: Dongjoon Hyun <[email protected]>
|
Thank you, @HyukjinKwon and all. |
|
Thanks! |
…t memory ### What changes were proposed in this pull request? This PR removes `.sbtopts` (added in apache#29286) that duplicately sets the default memory. The default memories are set: https://github.com/apache/spark/blob/3b634f66c3e4a942178a1e322ae65ce82779625d/build/sbt-launch-lib.bash#L119-L124 ### Why are the changes needed? This file disables the memory option from the `build/sbt` script: ```bash ./build/sbt -mem 6144 ``` ``` .../jdk-11.0.3.jdk/Contents/Home as default JAVA_HOME. Note, this will be overridden by -java-home if it is set. Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size ``` because it adds these memory options at the last: ```bash /.../bin/java -Xms6144m -Xmx6144m -XX:ReservedCodeCacheSize=256m -Xmx4G -Xss4m -jar build/sbt-launch-1.5.0.jar ``` and Java respects the rightmost memory configurations. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually ran SBT. It will be tested in the CIs in this Pr. Closes apache#32062 from HyukjinKwon/SPARK-34965. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 2eda1c6) Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
This PR removes
.sbtopts(added in #29286) that duplicately sets the default memory. The default memories are set:spark/build/sbt-launch-lib.bash
Lines 119 to 124 in 3b634f6
Why are the changes needed?
This file disables the memory option from the
build/sbtscript:because it adds these memory options at the last:
and Java respects the rightmost memory configurations.
Does this PR introduce any user-facing change?
No, dev-only.
How was this patch tested?
Manually ran SBT. It will be tested in the CIs in this Pr.