Skip to content

Commit ead6abf

Browse files
abridgettJoshRosen
authored andcommitted
[SPARK-12499][BUILD] don't force MAVEN_OPTS
allow the user to override MAVEN_OPTS (2GB wasn't sufficient for me) Author: Adrian Bridgett <adrian@smop.co.uk> Closes apache#10448 from abridgett/feature/do_not_force_maven_opts.
1 parent ae1f54a commit ead6abf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-distribution.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fi
159159
# Build uber fat JAR
160160
cd "$SPARK_HOME"
161161

162-
export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m"
162+
export MAVEN_OPTS="${MAVEN_OPTS:--Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m}"
163163

164164
# Store the command as an array because $MVN variable might have spaces in it.
165165
# Normal quoting tricks don't work.

0 commit comments

Comments
 (0)