Setting up ElasticSearch Cluster on Windows

I'm trying to set up an ES cluster on three Windows hosts. Those hosts are currently offline, and I cannot extract screenshots.

All three nodes have the following elasticsearch.yml:

bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.master: true
node.data: true
node.max_local_storage_nodes: 1
node.name: server1
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
transport.tcp.port: 9300

xpack.license.self_generated.type: basic
xpack.security.enabled: false
network.host: 127.0.0.1
discover.zen.ping.unicast.hosts: ["IP1(to replace the actual IP)", "IP2", "IP3"]
cluster.initial_master_nodes: ["IP1(to replace the actual IP)", "IP2", "IP3"]

A connection error is thrown and a warning shows up with the following text:

master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster

Any advice? Also, are there any Windows specific steps I might follow?

(I'm sorry for not being able to extract the error logs)

Your nodes can't communicate as you are binding each node into licalhost IP
Use network.host: site

Thank you for your response. What should I put in place of site?

you can use "site" to bind on any IP adresse or use explicit IP adresse like what you did for seeds

Check some network config here

So just to make sure that I understand: in this case, on server1 with IP1, the network.host will be IP1?

yes,

1 Like

Hi there,

I have deleted the contents of the data folder and changed the config as specified in your message. How do I check that the node is running now? Also, how can I verify that the cluster contains three nodes?

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