添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
2019-06-13 19:27:14.603 ERROR 13744 --- [  restartedMain] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{bTxVan_3SuKhfjYa9Z9gtg}{192.168.2.109}{192.168.2.109:9300}]

出现这个错误,不要管什么yml配置! 记住! 怎么改都没有用!

因为出现的是以下这个问题:

[{#transport#-1}{729dgKKVSF-ti27v2_w68g}{127.0.0.1}{127.0.0.7:9300}]]

是版本不兼容:

1.spring boot2.X版本必须使用Elasticsearch 5.X版本

2.Elasticsearch 2.X的版本必须使用spring boot1.5版本

3.目前spring-boot-starter-data-elasticsearch还不支持Elasticsearch 6.X版本

这三种情况都是版本不兼容! 费了我大半天改来改去,我TM手贱下载的是7.1.1版本!

很生气,不允许任何反驳,就是不兼容!







这篇是我给入门新手们弄得springboot的使用elasticsearch实战详细教学篇,想了解的可以看下:
https://blog.csdn.net/qq_35387940/article/details/104840473






花费了半天时间,记录一下这个坑: 网上搜索No Node Available Exception 基本都是ip端口或者集群名称没有正确配置造成的,然而反复检查发现这些都是正确配置了的,但是 运行 还是 报错 。在本地调试不会报这个错,但是报的另外一个错误java.lang.NoSuchMethodError: io.netty.buffer.CompositeByteBuf.addComponents(ZLja... No Node Available Exception : None of the configure d nodes are available 节点不可用,出现这个错误,简单思考一下,可能有以下几种原因: (1)ES集群处于异常状态不可用; (2)Java client正常 ES 集群正常,但是连接不到集群; (3)Java client异常,连接不到ES集群 排查步骤: 1.查看集群是否... 2.问题原因: @SuppressWarnings({ "unchecked", "resource" }) public static void main(String[] args) throws Exception { // 先构建client Settings settings = Setting 一、问题描述 某次监控项目里,后端数据分析组件启动时,catalina日志 报错 无法连接ES,显示所有ES当前状态不可用, 报错 如下: 2022-05-16 10:18:57.667 [localhost-startStop-1] ERROR c.u.a.q.QuartzJobBaseLineBean - org. elasticsearch .client.transport.No Node Available Exception : None of the configure d nodes are available : 在使用 elasticsearch 报错 : No Node Available Exception [None of the configure d nodes are available : [{#transport#-1}{127.0.0.1}{127.0.0.1:9300}]] at org. elasticsearch .client.transport.TransportClient Nodes Service.ensure Nodes Are Available (TransportClient Nodes Service.ja org. elasticsearch .client.transport.No Node Available Exception : None of the configure d nodes are available : [{#transport#-1}{127.0.0.1:9300}] 以及:Caused by: java.lang.IllegalState Exception : available Processors is already set to [4], rejecting [4] 问题描述: No Node Available Exception [None of the configure d nodes are available : [{#transport#-1}{24Zgaka4SymrCz77VQyDEA}{127.0.0.1}{127.0.0.1:9200}]] 问题分析: 1、Spring Boot配置的连接端口不对。 解决办法:Spring Boot连接 ElasticSearch 用的都是9300,所以将端口改为9300即可。有关 Elasticsearch 端口介绍请查看以 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version&g... Exception in thread "main" No Node Available Exception [None of the configure d nodes are available : [{#transport#-1}{fnXsQzMSThmJ_s8pKVnZng}{localhost}{127.0.0.1:9300}]] at org. elasticsearch .client.transp... 原因: https://github.com/olivere/elastic/issues/312外网访问的解决办法: https://github.com/olivere/elastic/wiki/Docker其余尝试(不太妥当):Automatically set `network.publish_host` during startuphttps://github.com/docker-li... 在学习 Elasticsearch 的时候,第一次 运行 就出现了下面的错误: No Node Available Exception [None of the configure d nodes are available : [{#transport#-1}{hnP6DsAyQGif53-oYkfGJA}{192.168.3.160}{192.168.3.160:9300}]] 错误的意思是:无可用结点 造成错误的原因: 1.程序中 Elasticsearch 的配置和Elasticsearc服务配置的集群名称不一致。