Skip to content

Configuration variable substitution broken in 6.x for array entries #28196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bra-fsn opened this issue Jan 12, 2018 · 1 comment
Closed

Configuration variable substitution broken in 6.x for array entries #28196

bra-fsn opened this issue Jan 12, 2018 · 1 comment

Comments

@bra-fsn
Copy link

bra-fsn commented Jan 12, 2018

Elasticsearch version (bin/elasticsearch --version):
Version: 6.1.1, Build: bd92e7f/2017-12-17T20:23:25.338Z, JVM: 1.8.0_152

Plugins installed: analysis-icu

JVM version (java -version):
openjdk version "1.8.0_152"
OpenJDK Runtime Environment (build 1.8.0_152-b16)
OpenJDK 64-Bit Server VM (build 25.152-b16, mixed mode)

OS version (uname -a if on a Unix-like system):
FreeBSD japan 11.1-STABLE FreeBSD 11.1-STABLE #0 r324684: Tue Oct 17 15:07:45 CEST 2017 root@japan:/usr/obj/usr/src/sys/GENERIC amd64

Description of the problem including expected versus actual behavior:
Older (up to 5.6.4 at least) elasticsearch could work with the following in its config (elasticsearch.yml):
discovery.zen.ping.unicast.hosts: ["${ES_MASTER1}:${ES_MASTER_PORT}","${ES_MASTER2}:${ES_MASTER_PORT}","${ES_MASTER3}:${ES_MASTER_PORT}"]
network.bind_host: ["${ES_HOST}","127.0.0.1"]
Newer ones (6.1.1 tested, not sure about previous versions) don't.
It doesn't expand the variable, so it fails for example with:
Caused by: java.net.UnknownHostException: ${ES_HOST}: hostname nor servname provided, or not known

Variables in normal (not list) config lines seem to work.

Steps to reproduce:
Use a variable substitution in an array configuration setting.

@jasontedor
Copy link
Member

Duplicates #27926

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants