Elasticsearch shows "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster"

Hello Team,

Im setting up a single node cluster and below is my elasticsearch.yml file

cluster.name: my-application

node.name: node-1
node.master: true
node.data: true

bootstrap.memory_lock: true

network.host: CZASMV-MSELK004

http.port: 9200

discovery.seed_hosts: ["CZASMV-MSELK004"]

cluster.initial_master_nodes: ["CZASMV-MSELK004"]

######## Start OpenDistro for Elasticsearch Security Demo Configuration ########
# WARNING: revise all the lines below before you go into production
opendistro_security.ssl.transport.pemcert_filepath: esnode.pem
opendistro_security.ssl.transport.pemkey_filepath: esnode-key.pem
opendistro_security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
opendistro_security.ssl.transport.enforce_hostname_verification: false
opendistro_security.ssl.http.enabled: true
opendistro_security.ssl.http.pemcert_filepath: esnode.pem
opendistro_security.ssl.http.pemkey_filepath: esnode-key.pem
opendistro_security.ssl.http.pemtrustedcas_filepath: root-ca.pem
opendistro_security.allow_unsafe_democertificates: true
opendistro_security.allow_default_init_securityindex: true
opendistro_security.authcz.admin_dn:
  - CN=kirk,OU=client,O=client,L=test, C=de

opendistro_security.audit.type: internal_elasticsearch
opendistro_security.enable_snapshot_restore_privilege: true
opendistro_security.check_snapshot_restore_write_privileges: true
opendistro_security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
opendistro_security.system_indices.enabled: true
opendistro_security.system_indices.indices: [".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opendistro-notifications-*", ".opendistro-notebooks", ".opendistro-asynchronous-search-response*"]
cluster.routing.allocation.disk.threshold_enabled: false
node.max_local_storage_nodes: 3

Once I start the cluster, I get the WARN message telling the below

[WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [CZASMV-MSELK004] to bootstrap a cluster: have discovered [{node-1}{QC2YR8ecRaWSJny4Vgr3mQ}{mpl_FOfmTJqQurBszJSwuw}{CZASMV-MSELK004}{10.200.59.35:9300}{dimr}]; discovery will continue using [] from hosts providers and [{node-1}{QC2YR8ecRaWSJny4Vgr3mQ}{mpl_FOfmTJqQurBszJSwuw}{CZASMV-MSELK004}{10.200.59.35:9300}{dimr}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

However I can see the master role is enabled as show below

Can someone please help me if im missing something here ? Thanks for your help

Might be a good start:

discovery.seed_hosts: [ 'node-1', 'node-2', 'node-3' ]
cluster.initial_master_nodes: [ 'node-1', 'node-2', 'node-3' ]

discovery.type: single-node

2 Likes