diff options
author | Andrew xia <junluan.xia@intel.com> | 2013-09-29 22:00:19 +0800 |
---|---|---|
committer | Andrew xia <junluan.xia@intel.com> | 2013-09-29 22:00:19 +0800 |
commit | cc37b3151cb606ecf1c35865202dc2a08741281c (patch) | |
tree | 2c0c612c1397eea7bdfc80a696da8cb91d825be1 /sbin | |
parent | 84849baf88d31cfaaeee158a947c4db1abe94ce6 (diff) | |
download | spark-cc37b3151cb606ecf1c35865202dc2a08741281c.tar.gz spark-cc37b3151cb606ecf1c35865202dc2a08741281c.tar.bz2 spark-cc37b3151cb606ecf1c35865202dc2a08741281c.zip |
refactor $FWD variable
Diffstat (limited to 'sbin')
-rwxr-xr-x | sbin/compute-classpath.sh | 2 | ||||
-rwxr-xr-x | sbin/spark-class | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/compute-classpath.sh b/sbin/compute-classpath.sh index c7819d4932..d9217ecf77 100755 --- a/sbin/compute-classpath.sh +++ b/sbin/compute-classpath.sh @@ -26,7 +26,7 @@ SCALA_VERSION=2.9.3 FWDIR="$(cd `dirname $0`/..; pwd)" # Load environment variables from conf/spark-env.sh, if it exists -if [ -e $FWDIR/conf/spark-env.sh ] ; then +if [ -e "$FWDIR/conf/spark-env.sh" ] ; then . $FWDIR/conf/spark-env.sh fi diff --git a/sbin/spark-class b/sbin/spark-class index 7f25fe1050..3bdc29e543 100755 --- a/sbin/spark-class +++ b/sbin/spark-class @@ -26,7 +26,7 @@ FWDIR="$(cd `dirname $0`/..; pwd)" export SPARK_HOME="$FWDIR" # Load environment variables from conf/spark-env.sh, if it exists -if [ -e $FWDIR/conf/spark-env.sh ] ; then +if [ -e "$FWDIR/conf/spark-env.sh" ] ; then . $FWDIR/conf/spark-env.sh fi @@ -87,7 +87,7 @@ JAVA_OPTS="$OUR_JAVA_OPTS" JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$SPARK_LIBRARY_PATH" JAVA_OPTS="$JAVA_OPTS -Xms$SPARK_MEM -Xmx$SPARK_MEM" # Load extra JAVA_OPTS from conf/java-opts, if it exists -if [ -e $FWDIR/conf/java-opts ] ; then +if [ -e "$FWDIR/conf/java-opts" ] ; then JAVA_OPTS="$JAVA_OPTS `cat $FWDIR/conf/java-opts`" fi export JAVA_OPTS |