Skip to content

Commit 98b6559

Browse files
committed
SPARK-1691: Support quoted arguments inside of spark-submit.
This is a fairly straightforward fix. The bug was reported by @vanzin and the fix was proposed by @deanwampler and myself. Please take a look! Author: Patrick Wendell <pwendell@gmail.com> Closes #609 from pwendell/quotes and squashes the following commits: 8bed767 [Patrick Wendell] SPARK-1691: Support quoted arguments inside of spark-submit.
1 parent 55100da commit 98b6559

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/spark-submit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919

2020
export SPARK_HOME="$(cd `dirname $0`/..; pwd)"
21-
ORIG_ARGS=$@
21+
ORIG_ARGS=("$@")
2222

2323
while (($#)); do
2424
if [ "$1" = "--deploy-mode" ]; then
@@ -39,5 +39,5 @@ if [ ! -z $DRIVER_MEMORY ] && [ ! -z $DEPLOY_MODE ] && [ $DEPLOY_MODE = "client"
3939
export SPARK_MEM=$DRIVER_MEMORY
4040
fi
4141

42-
$SPARK_HOME/bin/spark-class org.apache.spark.deploy.SparkSubmit $ORIG_ARGS
42+
$SPARK_HOME/bin/spark-class org.apache.spark.deploy.SparkSubmit "${ORIG_ARGS[@]}"
4343

0 commit comments

Comments
 (0)