red888
(red der)
January 25, 2018, 5:37pm
1
My variable is set
# echo $ESCLUSTER
es-datanode-01,es-datanode-02
In ES config I have:
discovery.zen.ping.unicast.hosts: "${ESCLUSTER}"
The service won't start.
If I add the string explicitly it does start:
discovery.zen.ping.unicast.hosts: "es-datanode-01,es-datanode-02"
I can't use environemtns vars in my config
jpcarey
(Jared Carey)
January 25, 2018, 8:43pm
2
Are you running / initializing elasticsearch with the same user that you have the environment variable set in?
Skip the quotation marks and it should work:
discovery.zen.ping.unicast.hosts: ${ESCLUSTER}
We do that and it works equally well if ESCLUSTER is just one server or a list of servers.
system
(system)
Closed
February 23, 2018, 10:27am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.