docker安装elasticsearch遇到的坑(二)

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的配置中加上这个名称!!

希望对你们有帮助!

发布了86 篇原创文章 · 获赞 36 · 访问量 15万+

猜你喜欢

转载自blog.csdn.net/JackRen_Developer/article/details/102606769
今日推荐