Even tried to set 1 node as master using node.master=true
Still getting following error log
Both nodes are in same network
We are able to ping nodes from each other as well as telnet to 9200 is working.
Can somebody please help here?
[2015-12-18 00:52:45,071][WARN ][discovery.zen.ping.unicast] [plab_node_201] failed to send ping to [{#zen_unicast_2#}{xx.xx.xx.xxx}{hostname/xx.xx.xx.xxx:9200}]
ReceiveTimeoutTransportException[[][hostname/xx.xx.xx.xxx:9200][internal:discovery/zen/unicast] request_id [389] timed out after [3750ms]]
# Elasticsearch nodes will find each other via unicast, by default.
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
discovery.zen.ping.unicast.hosts: ["elastic-node-01", "elastic-node-02", "elastic-node-03"]
also, i think the node.master=true param does not set the node as master, only makes it eligible as master.
meaning you can have this parameter on both nodes.
I had exactly the same problem. Have you set the hostname for each host in the yaml file? The comments for that field don't make it look critical, but it is.
The issue was of multiple network interfaces failing discovery. By publishing specific ip address it got resolved. network.publish_host and network.bind_host in conf file was set to its own IP.
It could be due to multiple instance of ES running on same machine, a corrupted/killed ES has not released the port, check the instances running by executing jps, if more than one is running, kill the one which is not releasing the port
I had the same issue, out of 12 indices only 8 recovered, checked the running ES instances, killed the one not terminated properly, it worked
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.