зеркало из https://github.com/microsoft/spark.git
Read config variables before to get the master port
This commit is contained in:
Родитель
0008994044
Коммит
c90c9ec208
|
@ -5,6 +5,10 @@ bin=`cd "$bin"; pwd`
|
||||||
|
|
||||||
. "$bin/spark-config.sh"
|
. "$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
|
# Find the port number for the master
|
||||||
if [ "$SPARK_MASTER_PORT" = "" ]; then
|
if [ "$SPARK_MASTER_PORT" = "" ]; then
|
||||||
SPARK_MASTER_PORT=7077
|
SPARK_MASTER_PORT=7077
|
||||||
|
|
Загрузка…
Ссылка в новой задаче