Same as in:
- (unanswered and closed) question here: Problem with
node.roles
on latest Elasticsearch docker (7.11.0) - question (with an unsatisfying answer) on SO: How to set default value while using env in elasticsearch.yml config file?
We, for instance, run ES via:
docker run ... -e node.roles=<What to define here for a coordinating only node?!?> ...
I tried various combinations like:
-e node.roles=
-e node.roles=''
-e node.roles=""
-e node.roles='""'
-e node.roles="''"
-e node.roles=[]
-e node.roles='[]'
-e node.roles="[]"
-e node.roles=[ ]
-e node.roles='[ ]'
-e node.roles="[ ]"
-e node.roles=()
-e node.roles='()'
-e node.roles="()"
-e node.roles=\'\'
... and more ...
... to no avail. (The first three work basically. They behave as if node.roles
hasn't been mentioned at all and apply the default node settings.)
I even tried to find out how ES parses and interprets settings via environment at GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine but I didn't find the regarding piece of code yet.