NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{192.168.1.99}{192.168.1.99:9200}]]
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:290)

我看的是百度上很多方法,尝试后发现都不行,是因为:

名称中设置了,但是在代码中没有做匹配,第一种是注释掉这个名字,第二种方法是springboot的配置中加上这个名称!!
希望对你们有帮助!
425

被折叠的 条评论
为什么被折叠?



