zen.xen
September 16, 2020, 1:17pm
1
Hello,
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: 192.168.11.96, and debian-02: 192.168.11.97
configuration file elasticsearch.yml:
http.port: 9200
path.data: /opt/bitnami/elasticsearch/data
transport.tcp.port: 9300
action.destructive_requires_name: true
network.host: 192.168.11.96
network.bind_host: 0.0.0.0
network.publish_host: 192.168.11.96
cluster.name: Cluster
node.name: debian-01 //second node debian-02
discovery.zen.ping.unicast.hosts: ["192.168.11.96", "192.168.11.97"]
discovery.initial_state_timeout: 5m
gateway.recover_after_nodes: 1
gateway.expected_nodes: 1
cluster.initial_master_nodes: ["192.168.11.96", "192.168.11.97"]
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?
warkolm
(Mark Walkom)
September 16, 2020, 9:26pm
2
What do you mean by that?
zen.xen
September 16, 2020, 10:23pm
3
I have tried something like these:
discovery.zen.ping.unicast.hosts: ["192.168.11.96", "192.168.11.97"]
or
discovery.zen.ping.unicast.hosts: ["debian-01", "debian-02"]
cluster.initial_master_nodes: ["192.168.11.96", "192.168.11.97"]
or
cluster.initial_master_nodes: 192.168.11.96, 192.168.11.97
or
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.
warkolm
(Mark Walkom)
September 16, 2020, 10:28pm
4
zen.xen:
and it doesn't work.
Ok, but please be more explicit.
Can you share logs?
zen.xen
September 18, 2020, 9:13am
5
I removed these lines from configuration file:
gateway.recover_after_nodes: 1
gateway.expected_nodes: 1
and it works like it should.
system
(system)
Closed
October 16, 2020, 9:13am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.