Elasticsearch version (bin/elasticsearch --version):
ES 7.10
Plugins installed:
N/A
JVM version (java -version):
Bundled JDK
OS version (uname -a if on a Unix-like system):
MacOS
Description of the problem including expected versus actual behavior:
I have this setting.
I want to pass $ENV_VAR to start it as coordinate only node.
When I set $ENV_VAR to "", I get node start with full set of roles.
$ curl localhost:9200/_cat/nodes
127.0.0.1 31 100 29 2.23 cdhilmrstw * senmac
When I set $ENV_VAR to " " (with one space inside), I get this error message.
java.lang.IllegalArgumentException: unknown role []
When I set $ENV_VAR to [], I get this error message.
java.lang.IllegalArgumentException: unknown role [[]]
Even if I don't set ENV_VAR (I used an undefined env I_DIDNOT_SET_THIS_ENV), I will also get error.
Exception in thread "main" java.lang.IllegalArgumentException: Could not resolve placeholder 'I_DIDNOT_SET_THIS_ENV'
Steps to reproduce:
- Download ES 7.10
- Set environment variable and put it to
node.roles in elasticsearch.yml
- Start ES
Provide logs (if relevant):
Elasticsearch version (
bin/elasticsearch --version):ES 7.10
Plugins installed:
N/A
JVM version (
java -version):Bundled JDK
OS version (
uname -aif on a Unix-like system):MacOS
Description of the problem including expected versus actual behavior:
I have this setting.
I want to pass $ENV_VAR to start it as coordinate only node.
When I set $ENV_VAR to
"", I get node start with full set of roles.When I set $ENV_VAR to
" "(with one space inside), I get this error message.When I set $ENV_VAR to
[], I get this error message.Even if I don't set ENV_VAR (I used an undefined env
I_DIDNOT_SET_THIS_ENV), I will also get error.Steps to reproduce:
node.rolesinelasticsearch.ymlProvide logs (if relevant):