From 9459722ebf6565d7161edab671d91588ff2c6e1b Mon Sep 17 00:00:00 2001 From: aho135 Date: Sat, 11 May 2024 02:53:22 -0700 Subject: [PATCH] Use canonical hostname instead of ip by default (#16386) Co-authored-by: Andrew Ho --- distribution/docker/druid.sh | 4 ++-- distribution/docker/peon.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/distribution/docker/druid.sh b/distribution/docker/druid.sh index 35f04c93566..820416078a3 100755 --- a/distribution/docker/druid.sh +++ b/distribution/docker/druid.sh @@ -138,8 +138,8 @@ then setKey _common druid.zk.service.host "${ZOOKEEPER}" fi -DRUID_SET_HOST=${DRUID_SET_HOST:-1} -if [ "${DRUID_SET_HOST}" = "1" ] +DRUID_SET_HOST_IP=${DRUID_SET_HOST_IP:-0} +if [ "${DRUID_SET_HOST_IP}" = "1" ] then setKey $SERVICE druid.host $(ip r get 1 | awk '{print $7;exit}') fi diff --git a/distribution/docker/peon.sh b/distribution/docker/peon.sh index c98c3d30a30..c2a0555c574 100755 --- a/distribution/docker/peon.sh +++ b/distribution/docker/peon.sh @@ -97,8 +97,8 @@ then setKey _common druid.zk.service.host "${ZOOKEEPER}" fi -DRUID_SET_HOST=${DRUID_SET_HOST:-1} -if [ "${DRUID_SET_HOST}" = "1" ] +DRUID_SET_HOST_IP=${DRUID_SET_HOST_IP:-0} +if [ "${DRUID_SET_HOST_IP}" = "1" ] then setKey $SERVICE druid.host $(ip r get 1 | awk '{print $7;exit}') fi