blue
blue

Reputation: 555

Elastic search - Spring boot: None of the configured nodes are available

I am deploying my monolithic JHipster application to Tomcat. I have installed elastic search as a service in order to use it as a seperate node with my application. Elastic search is working fine (localhost:9200 returns the cluster info).

I added this config to my application-prod.yml

  data:
    elasticsearch:
        cluster-name: elasticsearch
        cluster-nodes: localhost:9300
        properties:
            http:
                enabled: true

When I start tomcat I get this error :

   .AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{localhost}{127.0.0.1:9300}]

Upvotes: 0

Views: 2170

Answers (1)

blue
blue

Reputation: 555

I found the solution, I was using the wrong version of elasticSearch.

According to this, I have to use a version between 2 and 5 since I am working with spring boot 1.5.

Upvotes: 1

Related Questions