-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Unknown setting [discovery.seed_hosts] elasticsearch 6.x #192
Comments
The same for 6.8.1. Any updates on it? |
@anebi, there is workaround. Simply add this to helm command: Just simplify it as you need :) The root cause of this bug is that there is hardcoded ES major version:
That means, even when you build with ES version 6.x.x. major version will be 7. This is definitely bug.
The second one is preferable. |
@Crazybus, do you any need help with this? |
Thank you very much. All clear. I can do my setup now :) |
@OlegHudyma I do agree it results in a confusing user experience, though I don't exactly know how to improve it. We need a way to tell Helm what version of Elasticsearch we are using, but docker tags are probably not a completely reliable way to describe this (you could use a custom docker image that has a tag like 'latest'). The chart uses the esMajorVersion value to determine this, and it defaults to 7 (just as the imageTag defaults to 7.2.0 right now). If you change the major version of Elasticsearch (say, 6.8.0), then you would also need to change the esMajorVersion value.
The chart version is versioned with the stack (7.2.0, etc) but has relaxed version support (ie; it is expected that you can use the 7.2.0 chart to deploy 6.8.x elasticsearch). Likewise, the 7.2.0 chart can probably also successfully deploy Elasticsearch master (8.0.0-SNAPSHOT, for example).
This feels the most intuitive, but as you can specify your own image and imageTag, and that imageTag may have a value that does not refer at all to Elasticsearch major version, I don't know if this is the right solution. |
Maybe for the common case, we could have a default @Crazybus thoughts? |
@jordansissel, as you said, it would be good to use imageTag for calculating
|
In the readme we have section on compatability which specifies the currently tested versions and links to the automated test examples which includes a test for 6.x. It may not be 100% intuitive but I certainly wouldn't call it a bug or hardcoded since this is fully configurable and documented.
Yup, this is exactly why we created a variable for it instead of relying on the docker tag to be matching for custom images.
I really really like this idea. The more I think about it, I think it would be ok to try always try and detect the version from the
As long as the service discovery doesn't change in a future release (the only version specific logic that we have) then all future releases will continue to work. The deprecated options for 8.x were changed in #100 so it does already work with 8.x . f we had docker images for all Elasticsearch versions then it would also technically work for all those previous versions too. |
I just opened #206 to implement the auto detection. I ended up going back on my idea of potentially doing this for all images since if someone were to be using a custom image with version |
Chart version: 7.11
Kubernetes version: 1.13.5
Kubernetes provider: Rancher 2.2.3 / Hetzner Cloud
Describe the bug: I try to install Elasticsearch 6.6.0 and 6.8.0 versions using official helm chart on Rancher 2.2.3. When i run the cluster install and deployment, the elastic instances fail to start returning following exception:
Steps to reproduce:
Expected behavior: Elastic to start successfully
Provide logs and/or server output (if relevant):
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [discovery.seed_hosts] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.0.jar:6.8.0]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.0.jar:6.8.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.0.jar:6.8.0]
Caused by: java.lang.IllegalArgumentException: unknown setting [discovery.seed_hosts] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
Any additional context:
The text was updated successfully, but these errors were encountered: