diff --git a/assembly/package-res/Spark-app-builder.bat b/assembly/package-res/Spark-app-builder.bat index 000416da93b0..ac4591cc2ab9 100644 --- a/assembly/package-res/Spark-app-builder.bat +++ b/assembly/package-res/Spark-app-builder.bat @@ -3,5 +3,8 @@ setlocal SET initialDir=%cd% pushd %~dp0 SET SPOON_CONSOLE=1 + +if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set "PENTAHO_DI_JAVA_OPTIONS=-Xms1024m -Xmx3072m -XX:MaxPermSize=256m" + call Spoon.bat -main org.pentaho.pdi.spark.driver.app.builder.SparkDriverAppBuilder %* popd diff --git a/assembly/package-res/spark-app-builder.sh b/assembly/package-res/spark-app-builder.sh index 777cf0b525d3..c67d0f102e6b 100644 --- a/assembly/package-res/spark-app-builder.sh +++ b/assembly/package-res/spark-app-builder.sh @@ -6,4 +6,8 @@ cd "$BASEDIR" DIR="`pwd`" cd - > /dev/null +if [ -z "$PENTAHO_DI_JAVA_OPTIONS" ]; then + export PENTAHO_DI_JAVA_OPTIONS="-Xms1024m -Xmx3072m -XX:MaxPermSize=256m" +fi + "$DIR/spoon.sh" -main org.pentaho.pdi.spark.driver.app.builder.SparkDriverAppBuilder "$@"