Question

I have a strange problem when trying to setup a local running elasticsaerch cluster. I have tried a lot of settings with the bind.host and the auto discovery but did not succeed. The strange thing is if I have my wireless connection connected to a network the two nodes do not see each other. If I switch it of I do not have a problem. Following is the configuration of one node that works without a wireless adapter connected.

Does anyone have a clue what to try to make my cluster work?

cluster.name: localcluster
node.name: two

index.number_of_shards: 1
index.number_of_replicas: 0

network.host: _lo0:ipv4_

zen.ping.multicast.enabled: false
zen.ping.unicast.hosts: ["127.0.0.1"]
Was it helpful?

Solution

You are missing discovery. in the zen discovery settings. Try these settings:

cluster.name: "localcluster"
network.host: _lo0:ipv4_
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top