Elasticsearch: discovery-ec2 plugin not working in elasticsearch 7.0.0

Created on 12 Apr 2019  路  9Comments  路  Source: elastic/elasticsearch

discovery ec2 plugin is not able to discover master in 7.0.0
It was working fine before upgrading the cluster, I removed and reinstalled the plugin. Also created a fresh setup.

Am getting the following error :

Most helpful comment

I have the same problem, how did you solve it?

All 9 comments

Logs on master :

initial master nodes :(

How did you solve this problem? There's any other way than forcing a list of IPs or dns?

I have the same problem, how did you solve it?

Starting an Elasticsearch cluster for the very first time requires the initial set of master-eligible nodes to be explicitly defined on one or more of the master-eligible nodes in the cluster.

In other words, I see two options here:

  • explicitly define the "initial_master_nodes" (elasticsearch.yml) on every master-eligible nodes in the cluster
  • setup all instances, then log in one master eligible node and start it as a single node (discovery.type=single-node), remove the discovery type config and let them know each other.
  • explicitly define the "initial_master_nodes" (elasticsearch.yml) on every master-eligible nodes in the cluster

This did not work. When adding this to elasticsearch.yml, Elasticsearch fails to start stating:

java.lang.IllegalArgumentException: unknown setting [initial_master_nodes] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

@LloydArmstrong The configuration is cluster.initial_master_nodes, not initial_master_nodes.

https://www.elastic.co/guide/en/elasticsearch/reference/master/discovery-settings.html#initial_master_nodes

How to disable bootstrapping in production? We have other means to have 3 master nodes (via discovery.ec2.tag.*) and 7.x bootstrapping has no benefits to us.

I have same problem in Ver. 7.3. So I also would like to know how @vivekgkwd solved this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clintongormley picture clintongormley  路  3Comments

ppf2 picture ppf2  路  3Comments

rpalsaxena picture rpalsaxena  路  3Comments

martijnvg picture martijnvg  路  3Comments

clintongormley picture clintongormley  路  3Comments