Error connect node elastic 5.4.3 spring boot 2M2 failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available

Hi guys! I'm new here!

Im trying to connect with elasticsearch using a docker container, and the version 2.0.0.M2 of spring boot(spring-data-elastict-search), with version of elastic 5.4.3;

And throws:

:: Spring Boot :: (v2.0.0.M2)

2017-06-30 17:07:35.304 INFO 13523 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2017-06-30 17:07:35.306 INFO 13523 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.15
2017-06-30 17:07:35.373 INFO 13523 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-06-30 17:07:36.399 INFO 13523 --- [ main] o.s.d.e.c.TransportClientFactoryBean : adding transport node : localhost:9300
2017-06-30 17:07:36.658 ERROR 13523 --- [ main] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{RlWUN61vRwCWhZYkuh1TQw}{localhost}{127.0.0.1:9300}]

Docker command:
docker run -p 9200:9200 -p 9300:9300 -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" docker.elastic.co/elasticsearch/elasticsearch:5.4.3

My application.yml

spring:
data:
elasticsearch:
cluster-nodes: localhost:9300
cluster-name: docker-cluster

Did you guys have this kind of problem too?? help me!! :smile:

Thanks!!

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