aboutsummaryrefslogtreecommitdiff
path: root/bin/compute-classpath.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/compute-classpath.sh')
-rwxr-xr-xbin/compute-classpath.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/compute-classpath.sh b/bin/compute-classpath.sh
index 16b794a159..4d68496e29 100755
--- a/bin/compute-classpath.sh
+++ b/bin/compute-classpath.sh
@@ -27,8 +27,14 @@ FWDIR="$(cd `dirname $0`/..; pwd)"
. $FWDIR/bin/load-spark-env.sh
+CLASSPATH="$SPARK_CLASSPATH:$SPARK_SUBMIT_CLASSPATH"
+
# Build up classpath
-CLASSPATH="$SPARK_CLASSPATH:$SPARK_SUBMIT_CLASSPATH:$FWDIR/conf"
+if [ -n "$SPARK_CONF_DIR" ]; then
+ CLASSPATH="$CLASSPATH:$SPARK_CONF_DIR"
+else
+ CLASSPATH="$CLASSPATH:$FWDIR/conf"
+fi
ASSEMBLY_DIR="$FWDIR/assembly/target/scala-$SCALA_VERSION"