Could not form a cluster with 1 master node and two data nodes .
Im creating cluster inside vbox.
Getting Handshake exception. Please help me to solve the issue.
Master Node yml file:
cluster.name: CRIST
node.name: es-master-01
node.master: true
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["192.168.33.13","192.168.33.11","192.168.33.14"]
data node 1 yml file:
cluster.name: CRIST
node.name: data-node-01
node.data: true
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["192.168.33.11", "192.168.33.13","192.168.33.14"]
data node 2 yml file:
cluster.name: CRIST
node.name: data-node-02
node.master: false
node.data: true
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["192.168.33.11", "192.168.33.13","192.168.33.14"]
Logs for your reference:
[data-node-02] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2018-04-24T12:27:51,425][WARN ][o.e.d.z.ZenDiscovery ] [data-node-02] failed to connect to master [{es-master-01}{MqmS11EbSBSjps9cISRDyw}{qI9S3ZeiSDWLbS-74fDBSQ}{10.0$org.elasticsearch.transport.ConnectTransportException: [es-master-01][10.0.2.15:9300] handshake failed. unexpected remote node {data-node-02}{xLTwvjwZTluE0WsFJKQCjw}{WP-e6$ at org.elasticsearch.transport.TransportService.lambda$connectToNode$3(TransportService.java:335) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.transport.TcpTransport.connectToNode(TcpTransport.java:514) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:331) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:318) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery.joinElectedMaster(ZenDiscovery.java:515) [elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:483) [elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery.access$2500(ZenDiscovery.java:90) [elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery$JoinThreadControl$1.run(ZenDiscovery.java:1253) [elasticsearch-6.2.4.jar:6.2.4]
Thanks in advance!