Unknown-setting-cluster-initial-master-nodes error in ES 7.6.2

fstewart
Fri, 24 Apr 2020 20:07:53 +0000
Elasticsearch

According to the discussion and breaking doc in this post, ES 7.x should recognize the setting cluster.initial_master_nodes.

Here's the yml after installing ES 7.6.2 on Windows 7:

bootstrap.memory_lock: true
cluster.initial_master_nodes:
  - NEWUSER-PC
cluster.name: elasticsearch
http.port: 9200
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: NEWUSER-PC
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false

Here's the exception logged after running elasticsearch.bat to start the service:

Exception
java.lang.IllegalArgumentException: **unknown setting [cluster.initial_master_nodes.0]** please check that any required plugins are installed, or check the breaking changes documentation for removed settings
	at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:293) ~[elasticsearch-6.0.0-rc1.jar:6.0.0-rc1]

I notice the es jar version is 6.0.0. Which version number is in question?

UPDATE:

changed setting to:

discovery.zen.ping.unicast.hosts: ["NEWUSER-PC"]

but still get

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

If the service startup is not reading the setting from the yml, how do I modify it so the service can start?

4 posts - 2 participants