Repository: spark
Updated Branches:
  refs/heads/master 55100daa6 -> 98b65593b


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 <[email protected]>

Closes #609 from pwendell/quotes and squashes the following commits:

8bed767 [Patrick Wendell] SPARK-1691: Support quoted arguments inside of 
spark-submit.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/98b65593
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/98b65593
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/98b65593

Branch: refs/heads/master
Commit: 98b65593bdcfea54010f8c0fdf2a2b840f18c283
Parents: 55100da
Author: Patrick Wendell <[email protected]>
Authored: Thu May 1 01:15:51 2014 -0700
Committer: Patrick Wendell <[email protected]>
Committed: Thu May 1 01:15:51 2014 -0700

----------------------------------------------------------------------
 bin/spark-submit | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/98b65593/bin/spark-submit
----------------------------------------------------------------------
diff --git a/bin/spark-submit b/bin/spark-submit
index dd0d95d..49bc262 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[@]}"
 

Reply via email to