Not able to start data node for ES cluster

Hello @dadoonet,

Can you please help me in this?
I am trying develop elasticsearch clustering using 2 servers. They both are different hosts. I want to create one data and one master node.
Please find below Elasticsearch.yml file for master node:

cluster.name: Cluster
node.name: Master-node
node.master: true
node.data: true
network.host:   abcd.com
transport.tcp.port: 9300-9400
node.ingest: true
discovery.zen.ping.unicast.hosts: [" abcd.com","xyz.com"]
bootstrap.memory_lock: true
http.port: 9200
cluster.initial_master_nodes: ["abcd"]
path.data: /elasticsearch/data/
path.logs: /var/log/elasticsearch/
path.repo: /elasticsearch/repo/

and also find Elasticsearch.yml file for data node:

cluster.name: Cluster
node.name: Data-node1
node.master: false
node.data: true
node.ingest: false
network.host:  xyz.com
discovery.zen.ping.unicast.hosts: ["abcd.com","xyz.com"]
transport.tcp.port: 9300-9400
transport.host: xyz.com
path.data: /elasticsearch/data/
path.logs: /var/log/elasticsearch/
path.repo: /elasticsearch/repo/
bootstrap.memory_lock: true
http.port: 9400

My master node is getting started without any error. but data node throwing an error:

[2019-10-17T06:55:05,393][WARN ][o.e.c.c.ClusterFormationFailureHelper] [Data-no
de1] master not discovered yet: have discovered []; discovery will continue usin
g [136.252.129.115:9300] from hosts providers and [{Data-node1}{vMrL87DfRfmZV46p
YXb2HA}{Bd16YOX1SOOLgmAJIcbaFw}{xyz.com}{136.252.130.86:9300}{
ml.machine_memory=51539005440, xpack.installed=true, ml.max_open_jobs=20}] from
last-known cluster state; node term 0, last-accepted version 0 in term 0

Can you please look into it and let me know what other changes i need to do in config file so that data node will be up and running. Also let me know if i m doing anything wrong while doing clustering.

Regards,
Priyanka

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