This is an automated email from the ASF dual-hosted git repository.

frankchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 9459722ebf6 Use canonical hostname instead of ip by default (#16386)
9459722ebf6 is described below

commit 9459722ebf6565d7161edab671d91588ff2c6e1b
Author: aho135 <[email protected]>
AuthorDate: Sat May 11 02:53:22 2024 -0700

    Use canonical hostname instead of ip by default (#16386)
    
    Co-authored-by: Andrew Ho <[email protected]>
---
 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to