You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2021/08/23 00:47:56 UTC

[spark] branch branch-3.2 updated: [SPARK-36557][DOCS] Update the MAVEN_OPTS in Spark build docs

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new eea7d00  [SPARK-36557][DOCS] Update the MAVEN_OPTS in Spark build docs
eea7d00 is described below

commit eea7d0037ec7ca79772a99f016cff3cc5ff9276f
Author: Gengliang Wang <ge...@apache.org>
AuthorDate: Mon Aug 23 09:46:00 2021 +0900

    [SPARK-36557][DOCS] Update the MAVEN_OPTS in Spark build docs
    
    ### What changes were proposed in this pull request?
    
    As Jacek Laskowski pointed out in the dev list, there is StackOverflowError if compiling Spark with the current MAVEN_OPTS in Spark documentation.
    We should update it with `-Xss64m` to avoid it.
    
    ### Why are the changes needed?
    
    Correct the documentation
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Manual test. The MAVEN_OPTS is consistent with our github action build.
    
    Closes #33804 from gengliangwang/updateBuildDoc.
    
    Authored-by: Gengliang Wang <ge...@apache.org>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
    (cherry picked from commit 3da0e9500f933fa8286b2ae149658c4114a8251c)
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
 docs/building-spark.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/building-spark.md b/docs/building-spark.md
index 0e5dbef..1d6a96e 100644
--- a/docs/building-spark.md
+++ b/docs/building-spark.md
@@ -34,7 +34,7 @@ Spark requires Scala 2.12; support for Scala 2.11 was removed in Spark 3.0.0.
 
 You'll need to configure Maven to use more memory than usual by setting `MAVEN_OPTS`:
 
-    export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=1g"
+    export MAVEN_OPTS="-Xss64m -Xmx2g -XX:ReservedCodeCacheSize=1g"
 
 (The `ReservedCodeCacheSize` setting is optional but recommended.)
 If you don't add these parameters to `MAVEN_OPTS`, you may see errors and warnings like the following:

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org