Skip to content

Commit

Permalink
Use "private" variables in load-spark-env.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondav committed Mar 23, 2014
1 parent 8da8360 commit e291f91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/load-spark-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ if [ -z "$SPARK_ENV_LOADED" ]; then
export SPARK_ENV_LOADED=1

# Returns the parent of the directory this script lives in.
FWDIR="$(cd `dirname $0`/..; pwd)"
parent_dir="$(cd `dirname $0`/..; pwd)"

SPARK_CONF_DIR=${SPARK_CONF_DIR:-"$FWDIR/conf"}
use_conf_dir=${SPARK_CONF_DIR:-"$parent_dir/conf"}

if [ -f "${SPARK_CONF_DIR}/spark-env.sh" ]; then
. "${SPARK_CONF_DIR}/spark-env.sh"
if [ -f "${use_conf_dir}/spark-env.sh" ]; then
. "${use_conf_dir}/spark-env.sh"
fi
fi

0 comments on commit e291f91

Please sign in to comment.