I use the spring-data-elasticsearch with the version of 3.0.0 there has been a problem in use process, sometimes successfully, sometimes will report the error
None of the configured nodes are available: [ {#transport#-1} {S0DLwdVZRk-Osl4KgxM91A} {127.0.0.1} {127.0.0.1:9300}
Elasticsearch is version 5.4.0.
My spring configuration file is
<elasticsearch:repositories base-package="com.ai.notify.es.repository"/>
<elasticsearch:transport-client id="client" cluster-nodes="127.0.0.1:9300"
cluster-name="my-message" />
<bean name="elasticsearchTemplate"
class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
<constructor-arg name="client" ref="client"/>
</bean>
and my elasticsearch.yml is
cluster.name: my-message
client.transport.ignore_cluster_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
client.transport.sniff: true
This is because what causes.
This error does not appear frequently, but occasionally