This is the contents of my elasticsearch.yml file.
cluster.name: test-cluster
node.name: test-m
node.master: true
node.data: false
cluster.initial_master_nodes: ["${ES_MASTER_NODES}"]
discovery.seed_hosts: ["${ES_SEED_HOSTS}"]
network.host: 0.0.0.0
network.publish_host: ${ES_PUBLISH_HOST}
'discovery.seed_hosts' don't recognize it properly
'discovery.seed_hosts : ['192.xxx.xxx.11 ','192.xxx.xxx.12 ','192.xxx.xxx.13 ']
Works fine.
However, I want to create a variable called '$ {ES_SEED_HOSTS}' and use it to run it.
${ES_SEED_HOSTS} = "'192.xxx.xxx.11','192.xxx.xxx.12','192.xxx.xxx.13'"
[2020-03-19T08:04:10,831][WARN ][o.e.d.SeedHostsResolver ] [test-m] failed to resolve host ['192.xxx.xxx.11']Preformatted text
java.net.UnknownHostException: '192.xxx.xxx.11'
[2020-03-19T08:04:10,831][WARN ][o.e.d.SeedHostsResolver ] [test-m] failed to resolve host ['192.xxx.xxx.12']
java.net.UnknownHostException: '192.xxx.xxx.12'
[2020-03-19T08:04:10,831][WARN ][o.e.d.SeedHostsResolver ] [test-m] failed to resolve host ['192.xxx.xxx.13']
java.net.UnknownHostException: '192.xxx.xxx.13'
How should we put the value of the variable?
{ES_SEED_HOSTS}
/ ~ export ES_SEED_HOSTS=" ?? "