aboutsummaryrefslogtreecommitdiff
path: root/R/install-dev.sh
diff options
context:
space:
mode:
authorzuotingbing <zuo.tingbing9@zte.com.cn>2017-04-02 15:31:13 +0100
committerSean Owen <sowen@cloudera.com>2017-04-02 15:31:13 +0100
commit76de2d115364aa6a1fdaacdfae05f0c695c953b8 (patch)
treef3800e3d639727aa3ee33bee9423e4bf1ce85d9d /R/install-dev.sh
parentd40cbb861898de881621d5053a468af570d72127 (diff)
downloadspark-76de2d115364aa6a1fdaacdfae05f0c695c953b8.tar.gz
spark-76de2d115364aa6a1fdaacdfae05f0c695c953b8.tar.bz2
spark-76de2d115364aa6a1fdaacdfae05f0c695c953b8.zip
[SPARK-20123][BUILD] SPARK_HOME variable might have spaces in it(e.g. $SPARK…
JIRA Issue: https://issues.apache.org/jira/browse/SPARK-20123 ## What changes were proposed in this pull request? If $SPARK_HOME or $FWDIR variable contains spaces, then use "./dev/make-distribution.sh --name custom-spark --tgz -Psparkr -Phadoop-2.7 -Phive -Phive-thriftserver -Pmesos -Pyarn" build spark will failed. ## How was this patch tested? manual tests Author: zuotingbing <zuo.tingbing9@zte.com.cn> Closes #17452 from zuotingbing/spark-bulid.
Diffstat (limited to 'R/install-dev.sh')
-rwxr-xr-xR/install-dev.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/R/install-dev.sh b/R/install-dev.sh
index 45e6411705..d613552718 100755
--- a/R/install-dev.sh
+++ b/R/install-dev.sh
@@ -29,21 +29,21 @@
set -o pipefail
set -e
-FWDIR="$(cd `dirname "${BASH_SOURCE[0]}"`; pwd)"
+FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
LIB_DIR="$FWDIR/lib"
-mkdir -p $LIB_DIR
+mkdir -p "$LIB_DIR"
-pushd $FWDIR > /dev/null
-. $FWDIR/find-r.sh
+pushd "$FWDIR" > /dev/null
+. "$FWDIR/find-r.sh"
-. $FWDIR/create-rd.sh
+. "$FWDIR/create-rd.sh"
# Install SparkR to $LIB_DIR
-"$R_SCRIPT_PATH/"R CMD INSTALL --library=$LIB_DIR $FWDIR/pkg/
+"$R_SCRIPT_PATH/R" CMD INSTALL --library="$LIB_DIR" "$FWDIR/pkg/"
# Zip the SparkR package so that it can be distributed to worker nodes on YARN
-cd $LIB_DIR
+cd "$LIB_DIR"
jar cfM "$LIB_DIR/sparkr.zip" SparkR
popd > /dev/null