diff options
author | Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com> | 2015-02-12 14:44:21 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-02-12 14:44:21 -0800 |
commit | 629d0143eeb3c153dac9c65e7b556723c6b4bfc7 (patch) | |
tree | 096602782e82b38abac6a27eca4bbc12f78f7d31 | |
parent | 9c8076502f0c2c6a6dcdc6720d16b34132dfc06a (diff) | |
download | spark-629d0143eeb3c153dac9c65e7b556723c6b4bfc7.tar.gz spark-629d0143eeb3c153dac9c65e7b556723c6b4bfc7.tar.bz2 spark-629d0143eeb3c153dac9c65e7b556723c6b4bfc7.zip |
[SPARK-5765][Examples]Fixed word split problem in run-example and compute-classpath
Author: Venkata Ramana G <ramana.gollamudihuawei.com>
Author: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com>
Closes #4561 from gvramana/word_split and squashes the following commits:
285c8d4 [Venkata Ramana Gollamudi] Fixed word split problem in run-example and compute-classpath
-rwxr-xr-x | bin/compute-classpath.sh | 4 | ||||
-rwxr-xr-x | bin/run-example | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/compute-classpath.sh b/bin/compute-classpath.sh index a8c344b1ca..f4f6b7b909 100755 --- a/bin/compute-classpath.sh +++ b/bin/compute-classpath.sh @@ -76,7 +76,7 @@ fi num_jars=0 -for f in ${assembly_folder}/spark-assembly*hadoop*.jar; do +for f in "${assembly_folder}"/spark-assembly*hadoop*.jar; do if [[ ! -e "$f" ]]; then echo "Failed to find Spark assembly in $assembly_folder" 1>&2 echo "You need to build Spark before running this program." 1>&2 @@ -88,7 +88,7 @@ done if [ "$num_jars" -gt "1" ]; then echo "Found multiple Spark assembly jars in $assembly_folder:" 1>&2 - ls ${assembly_folder}/spark-assembly*hadoop*.jar 1>&2 + ls "${assembly_folder}"/spark-assembly*hadoop*.jar 1>&2 echo "Please remove all but one jar." 1>&2 exit 1 fi diff --git a/bin/run-example b/bin/run-example index c567acf9a6..a106411392 100755 --- a/bin/run-example +++ b/bin/run-example @@ -42,7 +42,7 @@ fi JAR_COUNT=0 -for f in ${JAR_PATH}/spark-examples-*hadoop*.jar; do +for f in "${JAR_PATH}"/spark-examples-*hadoop*.jar; do if [[ ! -e "$f" ]]; then echo "Failed to find Spark examples assembly in $FWDIR/lib or $FWDIR/examples/target" 1>&2 echo "You need to build Spark before running this program" 1>&2 @@ -54,7 +54,7 @@ done if [ "$JAR_COUNT" -gt "1" ]; then echo "Found multiple Spark examples assembly jars in ${JAR_PATH}" 1>&2 - ls ${JAR_PATH}/spark-examples-*hadoop*.jar 1>&2 + ls "${JAR_PATH}"/spark-examples-*hadoop*.jar 1>&2 echo "Please remove all but one jar." 1>&2 exit 1 fi |