阿里云上docker方式部署了单节点的6.5.3版本的es,elasticsearch.yml配置如下:
cluster.name: "docker-cluster"
node.name: node-test
network.bind_host: 0.0.0.0
network.publish_host: 58.87.73.232
discovery.zen.ping.unicast.hosts: ["58.87.73.232:9300"]
discovery.zen.minimum_master_nodes: 1
http.cors.enabled: true
http.cors.allow-origin: "*"
通过springboot2.1.1项目集成spring-boot-starter-data-elasticsearch
application.properties配置如下:
spring.data.elasticsearch.cluster-name=docker-cluster
spring.data.elasticsearch.cluster-nodes=58.87.73.232:9300
启动项目的测试用例抛异常**NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{rLnGNbz3QFaEToPtiuFTgQ}{58.87.73.232}{58.87.73.232:9300}]] **
请问什么原因?
附节点状态截图: