aboutsummaryrefslogtreecommitdiff
path: root/make-distribution.sh
diff options
context:
space:
mode:
authorAdrian Bridgett <adrian@smop.co.uk>2015-12-23 16:00:03 -0800
committerJosh Rosen <joshrosen@databricks.com>2015-12-23 16:00:03 -0800
commitead6abf7e7fc14b451214951d4991d497aa65e63 (patch)
tree96d27139fd4060f1edd716f4110212dff43a1ec3 /make-distribution.sh
parentae1f54aa0ed69f9daa1f32766ca234bda9320452 (diff)
downloadspark-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-xmake-distribution.sh2
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.