Java ElasticSearch None of the configured nodes are available

possible problem:

  1. wrong port, if you use a Java or Scala client, correct port is 9300, not 9200
  2. wrong cluster name, make sure the cluster name you set in your code is the same as the cluster.name you set in $ES_HOME/config/elasticsearch.yml
  3. the sniff option, set client.transport.sniff to be true but can’t connect to all nodes of ES cluster will cause this problem too. ES doc here explained why.

Leave a Comment