Unable to add node to the Elasticsearch cluster

I am newbie to elastic search clustering. I am trying to setup a simple cluster with two nodes(not adviced) for experimental purpose. My nodes are my laptop and my desktop.

The master node elastic search configuration :

cluster.name: my-cluster
node.name: master-1
node.master: true
node.data: true 
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch 
network.host: [_local_,_site_] 
http.port: 9200 
discovery.seed_hosts: ["<master-ip>","<node-ip>"] 
cluster.initial_master_nodes: ["master-1"] 

The data node elastic search config file:

cluster.name: my-cluster
node.name: data-1
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: [_local_,_site_]
http.port: 9200
discovery.seed_hosts: ["<master-ip>","<node-ip>"] 
cluster.initial_master_nodes: ["master-1"] 

I am able to telnet the master-node from the data-node but when I check the number of nodes on the master, I see only one node.

What am I missing here?

Welcome to our community! :smiley:

It'd help to share the logs from each node.

The logs of each node are not fitting in the text space given below. However, the logs show only security warning. Is there anything else that will help.

Feel free to use gist/pastebin/etc and provide a link here, but they will be useful.

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