我使用了的3.0.0版本,在使用过程中出现了一个问题,有时成功,有时会报告错误
没有配置的节点可用:[ {#transport#-1} {S0DLwdVZRk-奥斯4KgxM91A} {127.0.0.1} {127.0.0.1:9300}
Elasticsearch版本为5.4.0。
我的春季配置文件是
<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>我的elasticsearch.yml是
cluster.name: my-message
client.transport.ignore_cluster_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
client.transport.sniff: true这是因为。
此错误不经常出现,但偶尔出现。
发布于 2017-09-27 23:36:16
spring-数据弹性3.0.0.BUILD-快照使用弹性搜索客户端库的5.5.0版本。见pom.xml。所以您的弹性搜索服务器版本必须是,确切地说是 5.5.0。甚至是5.5.1或5.5.2或5.5.3或5.5.4等等。
https://stackoverflow.com/questions/44797588
复制相似问题