Cant use environment variables in elasticsearch.yml

My variable is set

In ES config I have: "${ESCLUSTER}"

The service won't start.

If I add the string explicitly it does start: "es-datanode-01,es-datanode-02"

I can't use environemtns vars in my config

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: ${ESCLUSTER}

We do that and it works equally well if ESCLUSTER is just one server or a list of servers.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.