Venkatesh
Venkatesh

Reputation: 300

Could not able to connect to with Elastic search cluster

I am trying to setup 2 nodes cluster for Elastic search.

cluster.name:test-cluster

node.name: es-node1

node.master: true node.data: true

path.data: /es/data path.logs: /es/log

network.host: privateIP

http.port: 9200 transport.tcp.port: 9300

discovery.zen.ping.unicast.hosts: [PublicIP]

discovery.zen.minimum_master_nodes: 1

Upvotes: 1

Views: 235

Answers (1)

Val
Val

Reputation: 217554

On node 1 you need to have this so that node 2 can see node 1

network.host: PublicIP-Node1
discovery.zen.ping.unicast.hosts: [PublicIP-Node2]

Similarly, on node 2 you need to have this:

network.host: PublicIP-Node2
discovery.zen.ping.unicast.hosts: [PublicIP-Node1]

Upvotes: 2

Related Questions