[hotfix] [shell scripts] Use SSH-less fast path for both 'localhost' and '127.0.0.1'
Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/58baf9f9 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/58baf9f9 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/58baf9f9 Branch: refs/heads/master Commit: 58baf9f9c66b4b0b84a4ec71fe916664d702b4a4 Parents: 39711fb Author: Stephan Ewen <[email protected]> Authored: Fri Feb 16 20:59:46 2018 +0100 Committer: Stephan Ewen <[email protected]> Committed: Sun Feb 18 22:24:35 2018 +0100 ---------------------------------------------------------------------- flink-dist/src/main/flink-bin/bin/config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/58baf9f9/flink-dist/src/main/flink-bin/bin/config.sh ---------------------------------------------------------------------- diff --git a/flink-dist/src/main/flink-bin/bin/config.sh b/flink-dist/src/main/flink-bin/bin/config.sh index 27b3912..2ee60fb 100755 --- a/flink-dist/src/main/flink-bin/bin/config.sh +++ b/flink-dist/src/main/flink-bin/bin/config.sh @@ -463,7 +463,7 @@ readMasters() { WEBUIPORTS+=(${WEBUIPORT}) fi - if [ "${HOST}" != "localhost" ] ; then + if [ "${HOST}" != "localhost" ] && [ "${HOST}" != "127.0.0.1" ] ; then MASTERS_ALL_LOCALHOST=false fi fi @@ -487,7 +487,7 @@ readSlaves() { HOST=$( extractHostName $line) if [ -n "$HOST" ] ; then SLAVES+=(${HOST}) - if [ "${HOST}" != "localhost" ] ; then + if [ "${HOST}" != "localhost" ] && [ "${HOST}" != "127.0.0.1" ] ; then SLAVES_ALL_LOCALHOST=false fi fi
