diff options
author | Adrian Bridgett <adrian@smop.co.uk> | 2015-12-23 16:00:03 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2015-12-23 16:00:03 -0800 |
commit | ead6abf7e7fc14b451214951d4991d497aa65e63 (patch) | |
tree | 96d27139fd4060f1edd716f4110212dff43a1ec3 /make-distribution.sh | |
parent | ae1f54aa0ed69f9daa1f32766ca234bda9320452 (diff) | |
download | spark-ead6abf7e7fc14b451214951d4991d497aa65e63.tar.gz spark-ead6abf7e7fc14b451214951d4991d497aa65e63.tar.bz2 spark-ead6abf7e7fc14b451214951d4991d497aa65e63.zip |
[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 #10448 from abridgett/feature/do_not_force_maven_opts.
Diffstat (limited to 'make-distribution.sh')
-rwxr-xr-x | make-distribution.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make-distribution.sh b/make-distribution.sh index 351b9e7d89..a38fd8df17 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -159,7 +159,7 @@ fi # Build uber fat JAR cd "$SPARK_HOME" -export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m" +export MAVEN_OPTS="${MAVEN_OPTS:--Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m}" # Store the command as an array because $MVN variable might have spaces in it. # Normal quoting tricks don't work. |