Skip to content

Commit

Permalink
Call hostname -f to get fully qualified host name
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed Sep 17, 2016
1 parent 69cb049 commit 5a8fb58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sbin/start-master.sh
Expand Up @@ -48,7 +48,7 @@ if [ "$SPARK_MASTER_PORT" = "" ]; then
fi

if [ "$SPARK_MASTER_HOST" = "" ]; then
SPARK_MASTER_HOST=`hostname`
SPARK_MASTER_HOST=`hostname -f`
fi

if [ "$SPARK_MASTER_WEBUI_PORT" = "" ]; then
Expand Down
2 changes: 1 addition & 1 deletion sbin/start-mesos-dispatcher.sh
Expand Up @@ -34,7 +34,7 @@ if [ "$SPARK_MESOS_DISPATCHER_PORT" = "" ]; then
fi

if [ "$SPARK_MESOS_DISPATCHER_HOST" = "" ]; then
SPARK_MESOS_DISPATCHER_HOST=`hostname`
SPARK_MESOS_DISPATCHER_HOST=`hostname -f`
fi

if [ "$SPARK_MESOS_DISPATCHER_NUM" = "" ]; then
Expand Down
2 changes: 1 addition & 1 deletion sbin/start-slaves.sh
Expand Up @@ -32,7 +32,7 @@ if [ "$SPARK_MASTER_PORT" = "" ]; then
fi

if [ "$SPARK_MASTER_HOST" = "" ]; then
SPARK_MASTER_HOST="`hostname`"
SPARK_MASTER_HOST="`hostname -f`"
fi

# Launch the slaves
Expand Down

0 comments on commit 5a8fb58

Please sign in to comment.