Data nodes are not able to join master, failed to send join request to master

Hi guys,
I can't get node-2 to join master
I am running 2 nodes node-1 as master and node-2 as data node
Here is my configuration:

master node : cluster production2
node.master: true /var/lib/elasticsearch
path.logs: /var/log/elasticsearch ["localhost", ""] ["", ""]

data node: cluster production1 true /var/lib/elasticsearch
path.logs: /var/log/elasticsearch ["","localhost"] [""]

curl localhost:9200/_cluster/health

----> Logfile
[o.e.d.z.ZenDiscovery ] [production1] failed to send join request to master [{production2}{yFdQEaCNSdfeTUZ7UwOtuw}{f3j5NwIFSCGudseJnZiSzw}{}{}], reason [RemoteTransportException[[production2][][internal:discovery/zen/join]]; nested: ConnectTransportException[[production1][] connect_timeout[30s]]; ]

telnet to master node on port 9300 is working fine, and also the master machine can telnet node-2 on port 9300

I am wondering what I missing ?
I would appreciate any help .
thank you very much in advance

It's a good idea to format your post using the </> button and check the preview window to make sure it looks good - it's much more likely to get a useful response this way.

The defaults for the and node.master settings are true, so you need to set node.master: false on the data-only node and false on the master node.

ConnectTransportException indicates a connectivity issue, but you will need to share more of the logs so we can see what's actually going on.

Can you define "working fine" more precisely? If you open a telnet connection to the transport port (i.e. 9300 by default) then nothing should happen, but it's hard to distinguish this from a connection that doesn't complete successfully.

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