Elasticsearch 7.12 cluster 3 node installation

Hi all,
I tried to setup 3 Elasticsearch nodes with configuration below

  • file /etc/hosts (on 3 nodes)
  • elasticsearch.yml
    NODE 1 (master-1)
    cluster.name: es-cluster
    node.name: "master-1"
    node.master: true
    node.data: true
    path.data: /home/elasticsearch/elasticsearch-7.12.0/data
    path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs
    network.host: [ local, site ]
    discovery.seed_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]
    cluster.initial_master_nodes: ["master-1", "master-2", "master-3"]

NODE 2 (master-2)
cluster.name: es-cluster
node.name: "master-2"
node.master: true
node.data: true
path.data: /home/elasticsearch/elasticsearch-7.12.0/data
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs
network.host: [ local, site ]
discovery.seed_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]
cluster.initial_master_nodes: ["master-1", "master-2", "master-3"]

NODE 3 (master-3)
cluster.name: es-cluster
node.name: "master-3"
node.master: true
node.data: true
path.data: /home/elasticsearch/elasticsearch-7.12.0/data
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs
network.host: [ local, site ]
discovery.seed_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]
cluster.initial_master_nodes: ["master-1", "master-2", "master-3"]

I expect to get 3 node with both master and data role in a cluster but this is the result when I get information on each node (only 1 node in cluster)

Can you guys have any advice for my configuration ?, tks

The configuration looks ok now, but I think you used a different configuration earlier that has got you stuck. The simplest thing to try is to delete /home/elasticsearch/elasticsearch-7.12.0/data on all the nodes and try again. See these docs for more information.

1 Like

Thanks David, It works now

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