没有可用的elasticsearch节点
来源:8-6 索引构建_核心逻辑(下)
布德兰王登
2019-04-02




用docker-compose成功搭建了elasticsearch集群,一主两副。在elasticsearch-head中能正常使用。但是项目无法找到可用的elasticsearch节点。点击准备进入房源详情时报错如下:
2019-04-02 21:00:43.066 ERROR 4148 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{Ei4DKtLBQEGH5N2yv6vbKA}{192.168.0.128}{192.168.0.128:9300}]]] with root cause
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{Ei4DKtLBQEGH5N2yv6vbKA}{192.168.0.128}{192.168.0.128:9300}]
输入正文
3回答
-
走出去
2019-10-04
.put("cluster.name", this.esName) 注释掉这行配置,原因在这里 http://blog.sina.com.cn/s/blog_81410c790102vldw.html
10 -
豆腐0083
2021-04-05
查了一晚上 除了楼上说的还有的可能是es版本不对,节点名字不对
服务器的话要看9300端口没开和yml里修改配置:
network.host: 0.0.0.0
network.publish_host: 服务器ip地址
00 -
瓦力老师
2019-04-26
亲,是不是在你项目中配置的ip是网络不可达的?
00
相似问题