Skip to content
Snippets Groups Projects
Commit c90c9ec2 authored by Denny's avatar Denny
Browse files

Read config variables before to get the master port

parent 00089940
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,10 @@ bin=`cd "$bin"; pwd`
. "$bin/spark-config.sh"
if [ -f "${SPARK_CONF_DIR}/spark-env.sh" ]; then
. "${SPARK_CONF_DIR}/spark-env.sh"
fi
# Find the port number for the master
if [ "$SPARK_MASTER_PORT" = "" ]; then
SPARK_MASTER_PORT=7077
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment