aboutsummaryrefslogtreecommitdiff
path: root/bin/spark-submit
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2014-05-01 01:15:51 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-05-01 01:15:51 -0700
commit98b65593bdcfea54010f8c0fdf2a2b840f18c283 (patch)
treecd79c50913b908ea22e95e6ac7612abf236704e4 /bin/spark-submit
parent55100daa6509bed851f6932845deffa861fef245 (diff)
downloadspark-98b65593bdcfea54010f8c0fdf2a2b840f18c283.tar.gz
spark-98b65593bdcfea54010f8c0fdf2a2b840f18c283.tar.bz2
spark-98b65593bdcfea54010f8c0fdf2a2b840f18c283.zip
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.
Diffstat (limited to 'bin/spark-submit')
-rwxr-xr-xbin/spark-submit4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/spark-submit b/bin/spark-submit
index dd0d95d9d4..49bc26252c 100755
--- a/bin/spark-submit
+++ b/bin/spark-submit
@@ -18,7 +18,7 @@
#
export SPARK_HOME="$(cd `dirname $0`/..; pwd)"
-ORIG_ARGS=$@
+ORIG_ARGS=("$@")
while (($#)); do
if [ "$1" = "--deploy-mode" ]; then
@@ -39,5 +39,5 @@ if [ ! -z $DRIVER_MEMORY ] && [ ! -z $DEPLOY_MODE ] && [ $DEPLOY_MODE = "client"
export SPARK_MEM=$DRIVER_MEMORY
fi
-$SPARK_HOME/bin/spark-class org.apache.spark.deploy.SparkSubmit $ORIG_ARGS
+$SPARK_HOME/bin/spark-class org.apache.spark.deploy.SparkSubmit "${ORIG_ARGS[@]}"