diff options
author | Sean Owen <sowen@cloudera.com> | 2016-05-27 11:28:28 -0700 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2016-05-27 11:28:28 -0700 |
commit | 623aae5907f4ba8b7079c21328e0c0b5fef7bb00 (patch) | |
tree | 6e4c55947915ab163cb9ae88e7b5c566a5cb797f /bin/spark-class | |
parent | ce756daa4f012ebdc5a41bf5a89ff11b6dfdab8c (diff) | |
download | spark-623aae5907f4ba8b7079c21328e0c0b5fef7bb00.tar.gz spark-623aae5907f4ba8b7079c21328e0c0b5fef7bb00.tar.bz2 spark-623aae5907f4ba8b7079c21328e0c0b5fef7bb00.zip |
[SPARK-15531][DEPLOY] spark-class tries to use too much memory when running Launcher
## What changes were proposed in this pull request?
Explicitly limit launcher JVM memory to modest 128m
## How was this patch tested?
Jenkins tests.
Author: Sean Owen <sowen@cloudera.com>
Closes #13360 from srowen/SPARK-15531.
Diffstat (limited to 'bin/spark-class')
-rwxr-xr-x | bin/spark-class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/spark-class b/bin/spark-class index 23a60c6ee4..658e076bc0 100755 --- a/bin/spark-class +++ b/bin/spark-class @@ -68,7 +68,7 @@ fi # The exit code of the launcher is appended to the output, so the parent shell removes it from the # command array and checks the value to see if the launcher succeeded. build_command() { - "$RUNNER" -cp "$LAUNCH_CLASSPATH" org.apache.spark.launcher.Main "$@" + "$RUNNER" -Xmx128m -cp "$LAUNCH_CLASSPATH" org.apache.spark.launcher.Main "$@" printf "%d\0" $? } |