Problem Connecting 3 nodes

Enviroment:
VirtualBox three servers with Ubuntu 18.04 LTS and network bridge.
Master: 106
ES01: 107
ES02: 108

ElasticSearch Version 7.6.1

This is my configuration elasticsearch.yml file:
MASTER:

cluster.name: my-app
node.name: master
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: ["127.0.0.1","192.168.1.106"]
discovery.zen.ping.unicast.hosts: ["192.168.1.107","192.168.1.108"]
discovery.zen.minimum_master_nodes: 2

ES01

cluster.name: my-app
node.name: es01
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: ["127.0.0.1","192.168.1.107"]
discovery.zen.ping.unicast.hosts: ["192.168.1.106","192.168.1.108"]
discovery.zen.minimum_master_nodes: 2

ES02

cluster.name: my-app
node.name: es02
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: ["127.0.0.1","192.168.1.108"]
discovery.zen.ping.unicast.hosts: ["192.168.1.106","192.168.1.107"]
discovery.zen.minimum_master_nodes: 2

File: /etc/default/elasticsearch uncomment MAX_LOCKED_MEMORY=unlimited
File: /etc/default/elasticsearch Add Line LimitMEMLOCK=infinity
Then reload daemon with command systemctl daemon-reload
And when I go to:
http://192.168.1.106:9200/_cluster/health
This return "number_of_nodes": 1 on each node

Nevermind I already fixed it. Just wipe all nodes.

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