aboutsummaryrefslogtreecommitdiff
path: root/sbin/start-slaves.sh
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2016-09-18 16:22:31 +0100
committerSean Owen <sowen@cloudera.com>2016-09-18 16:22:31 +0100
commit342c0e65bec4b9a715017089ab6ea127f3c46540 (patch)
treee36f5743b9f72d44f4a96667e4edff06b897dd18 /sbin/start-slaves.sh
parent5d3f4615f8d0a19b97cde5ae603f74aef2cc2fd2 (diff)
downloadspark-342c0e65bec4b9a715017089ab6ea127f3c46540.tar.gz
spark-342c0e65bec4b9a715017089ab6ea127f3c46540.tar.bz2
spark-342c0e65bec4b9a715017089ab6ea127f3c46540.zip
[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 <sowen@cloudera.com> Closes #15129 from srowen/SPARK-17546.
Diffstat (limited to 'sbin/start-slaves.sh')
-rwxr-xr-xsbin/start-slaves.sh2
1 files changed, 1 insertions, 1 deletions
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