Repository: spark
Updated Branches:
  refs/heads/branch-1.2 d4ce702c4 -> 6b227413d


[SPARK-5434] [EC2] Preserve spaces in EC2 path

Fixes [SPARK-5434](https://issues.apache.org/jira/browse/SPARK-5434).

Simple demonstration of the problem and the fix:

```
$ spacey_path="/path/with some/spaces"
$ dirname $spacey_path
usage: dirname path
$ echo $?
1
$ dirname "$spacey_path"
/path/with some
$ echo $?
0
```

Author: Nicholas Chammas <nicholas.cham...@gmail.com>

Closes #4224 from nchammas/patch-1 and squashes the following commits:

960711a [Nicholas Chammas] [EC2] Preserve spaces in EC2 path


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

Branch: refs/heads/branch-1.2
Commit: 6b227413d87958eec51aca51b49e7406f75a46c4
Parents: d4ce702
Author: Nicholas Chammas <nicholas.cham...@gmail.com>
Authored: Wed Jan 28 12:56:03 2015 -0800
Committer: Sean Owen <so...@cloudera.com>
Committed: Fri Feb 27 13:46:11 2015 +0000

----------------------------------------------------------------------
 ec2/spark-ec2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/6b227413/ec2/spark-ec2
----------------------------------------------------------------------
diff --git a/ec2/spark-ec2 b/ec2/spark-ec2
index 4aa9082..9347dbe 100755
--- a/ec2/spark-ec2
+++ b/ec2/spark-ec2
@@ -20,7 +20,7 @@
 
 # Preserve the user's CWD so that relative paths are passed correctly to 
 #+ the underlying Python script.
-SPARK_EC2_DIR="$(dirname $0)"
+SPARK_EC2_DIR="$(dirname "$0")"
 
 
PYTHONPATH="${SPARK_EC2_DIR}/third_party/boto-2.4.1.zip/boto-2.4.1:$PYTHONPATH" 
\
     python "${SPARK_EC2_DIR}/spark_ec2.py" "$@"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to