diff options
author | Nicholas Chammas <nicholas.chammas@gmail.com> | 2015-01-28 12:56:03 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-01-28 12:56:03 -0800 |
commit | d44ee436658cd91f3abeb9daa10a5578d7eebd81 (patch) | |
tree | d5ccbb8bf342eb1031a0424bc16033f188cbb97d /ec2 | |
parent | 84b6ecdef63e6f5710a3f7f95f698b1d1ea44855 (diff) | |
download | spark-d44ee436658cd91f3abeb9daa10a5578d7eebd81.tar.gz spark-d44ee436658cd91f3abeb9daa10a5578d7eebd81.tar.bz2 spark-d44ee436658cd91f3abeb9daa10a5578d7eebd81.zip |
[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.chammas@gmail.com>
Closes #4224 from nchammas/patch-1 and squashes the following commits:
960711a [Nicholas Chammas] [EC2] Preserve spaces in EC2 path
Diffstat (limited to 'ec2')
-rwxr-xr-x | ec2/spark-ec2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ec2/spark-ec2 b/ec2/spark-ec2 index 3abd3f396f..26e7d22655 100755 --- a/ec2/spark-ec2 +++ b/ec2/spark-ec2 @@ -20,6 +20,6 @@ # 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")" python -Wdefault "${SPARK_EC2_DIR}/spark_ec2.py" "$@" |