From 342c0e65bec4b9a715017089ab6ea127f3c46540 Mon Sep 17 00:00:00 2001 From: Sean Owen Date: Sun, 18 Sep 2016 16:22:31 +0100 Subject: [SPARK-17546][DEPLOY] start-* scripts should use hostname -f ## What changes were proposed in this pull request? Call `hostname -f` to get fully qualified host name ## How was this patch tested? Jenkins tests of course, but also verified output of command on OS X and Linux Author: Sean Owen Closes #15129 from srowen/SPARK-17546. --- sbin/start-slaves.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/start-slaves.sh') diff --git a/sbin/start-slaves.sh b/sbin/start-slaves.sh index 0fa1605489..7d8871251f 100755 --- a/sbin/start-slaves.sh +++ b/sbin/start-slaves.sh @@ -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 -- cgit v1.2.3