Hi All,
I am using Elasticsearch 7.2.0 as a stand-alone machine. Now I have a requirement to make it as a cluster. How could I perform the same? To do the same I've perform below steps, but It doesn't work for me.
Step1:
node1 configuration:-
cluster.name: "test_cluster"
node.name: node1
network.host: node1
discovery.seed_hosts: ["node1","node2"]
cluster.initial_master_nodes: ["node1", "node2"]
gateway.recover_after_nodes: 2
node2 configuration:
cluster.name: "test_cluster"
node.name: node2
network.host: node2
discovery.seed_hosts: ["node1","node2"]
cluster.initial_master_nodes: ["node1", "node2"]
gateway.recover_after_nodes: 2
In these steps after cluster node up, but it is working as a single node only, not like a cluster
Step 2:
In the above steps, I have also tried below settings
cluster.initial_master_nodes: ["node1"]
in both node1 and node2, still, it is not working.
Note: node1 has data and node2 is a fresh machine.
Please help me to resolve this issue.