mirror of https://github.com/apache/druid.git
Use canonical hostname instead of ip by default (#16386)
Co-authored-by: Andrew Ho <a.ho@salesforce.com>
This commit is contained in:
parent
811dcd1726
commit
9459722ebf
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue