Elasticsearch cluster 'master_not_discovered_exception'

后端 未结 6 1634
死守一世寂寞
死守一世寂寞 2021-02-07 10:48

i have installed elasticsearch 2.2.3 and configured in cluster of 2 nodes

Node 1 (elasticsearch.yml)

cluster.name: my-cluster
node.name: node1
bootstrap.         


        
6条回答
  •  野性不改
    2021-02-07 11:35

    The root cause of master not discovered exception is the nodes are not able to ping each other on port 9300. And this needs to be both ways. i.e node1 should be able to ping node2 on 9300 and vice versa.

    Note : Elasticsearch reserves port 9300-9400 for cluster communication and port 9200-9300 for accessing the elasticsearch APIs.

    A simple telnet would be able to confirm. From node1, fire telnet node2 9300.

    If it succeeds, next from node2 try telnet node1 9300.

    In case of master not discovered exception, at least one of the above telnet would be failing.

    In case you don't have telnet installed, you could even do a curl.

    Hope this helps.

提交回复
热议问题