Skip to content

Commit

Permalink
Set jvm memory for release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed May 9, 2021
1 parent 620f072 commit 2d27589
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev/create-release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ if [[ "$1" == "package" ]]; then
PYSPARK_VERSION=`echo "$SPARK_VERSION" | sed -e "s/-/./" -e "s/SNAPSHOT/dev0/" -e "s/preview/dev/"`
echo "__version__='$PYSPARK_VERSION'" > python/pyspark/version.py

export MAVEN_OPTS="-Xmx12000m"

# Get maven home set by MVN
MVN_HOME=`$MVN -version 2>&1 | grep 'Maven home' | awk '{print $NF}'`

Expand Down Expand Up @@ -365,6 +367,9 @@ if [[ "$1" == "publish-snapshot" ]]; then
echo "ERROR: You gave version '$SPARK_VERSION'"
exit 1
fi

export MAVEN_OPTS="-Xmx12000m"

# Coerce the requested version
$MVN versions:set -DnewVersion=$SPARK_VERSION
tmp_settings="tmp-settings.xml"
Expand All @@ -390,6 +395,9 @@ if [[ "$1" == "publish-release" ]]; then
# Publish Spark to Maven release repo
echo "Publishing Spark checkout at '$GIT_REF' ($git_hash)"
echo "Publish version is $SPARK_VERSION"

export MAVEN_OPTS="-Xmx12000m"

# Coerce the requested version
$MVN versions:set -DnewVersion=$SPARK_VERSION

Expand Down

0 comments on commit 2d27589

Please sign in to comment.