Cannot add new node to cluster on 7.2

Greetings, i am trying to add a second node to our elasticsearch cluster currently in development in our lab environment.
both nodes are running version 7.2 and are installed on CentOS7. Name resolution works with no issues and the machines can see each other. SELinux has been disabled as well as firewall Configuration files are below:
First Node:

cluster.name: elastic.lab.aginion.net
node.name: elastic01.lab.aginion.net
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["10.226.95.13"]
cluster.initial_master_nodes: elk01.lab.aginion.net

Second node:
cluster.name: elastic.lab.aginion.net
node.name: elk01.lab.aginion.net
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["10.226.95.10"]
cluster.initial_master_nodes: elastic.lab.aginion.net

additionally when i run curl -XGET 'http://elastic.lab.aginion.net:9200/_nodes' from any of the two nodes i receive information on only one.

Any help would be appreciated

Your nodes have different values for cluster.initial_master_nodes:

From the docs:

WARNING: You must set cluster.initial_master_nodes to the same list of nodes on each node on which it is set in order to be sure that only a single cluster forms during bootstrapping and therefore to avoid the risk of data loss.

Now that you have formed two separate clusters you cannot merge them together. This note in the docs gives some more details, and a solution.

Thank you David i will give it a try.

Hello David, thank you that fixed the issue, and both nodes have sucessfully joined the same cluster

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.