Reputation: 555
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