2-node cluster debian

I try to build 2-node cluster but it doesn't work. I have installed bitnami-elk-7.9.1-0-linux-debian-10-x86_64-nami.ova , I made two nodes:
debian-01:, and debian-02:
configuration file elasticsearch.yml:

http.port: 9200
path.data: /opt/bitnami/elasticsearch/data
transport.tcp.port: 9300
action.destructive_requires_name: true
cluster.name: Cluster
node.name: debian-01          //second node debian-02
discovery.zen.ping.unicast.hosts: ["", ""]
discovery.initial_state_timeout: 5m
gateway.recover_after_nodes: 1
gateway.expected_nodes: 1
cluster.initial_master_nodes: ["", ""]
node.master: true
node.data: true
node.ingest: false

I have tried different configurations and still don't work. Can somebody help me and correct the configuration file?

What do you mean by that?

I have tried something like these:

discovery.zen.ping.unicast.hosts: ["", ""]
discovery.zen.ping.unicast.hosts: ["debian-01", "debian-02"]

cluster.initial_master_nodes: ["", ""]
cluster.initial_master_nodes: debian-01, debian-02

and it doesn't work.
Anyway, maybe you have some example how to properly configure cluster, if yes share with me if you want.

Ok, but please be more explicit.
Can you share logs?

I removed these lines from configuration file:

gateway.recover_after_nodes: 1
gateway.expected_nodes: 1

and it works like it should.

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