ElasticSearch集群搭建时,报下面的错误,请问谁知道是什么问题?

文章描述了在启动Elasticsearch时遇到的连接问题,表现为多个节点无法连接到指定的种子节点[192.168.1.100:9300,192.168.1.101:9300,192.168.1.102:9300],提示没有到主机的路由错误。配置文件显示了可能的配置问题,如网络设置和种子节点列表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[2024-03-29T17:12:31,486][WARN ][o.e.d.PeerFinder         ] [es-100] address [192.168.1.102:9300], node [null], requesting [false] discovery result: [][192.168.1.102:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由
[2024-03-29T17:12:32,487][WARN ][o.e.d.PeerFinder         ] [es-100] address [192.168.1.101:9300], node [null], requesting [false] discovery result: [][192.168.1.101:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: 没有到主机的路由: /192.168.1.101:9300: 没有到主机的路由: /192.168.1.101:9300: 没有到主机的路由
[2024-03-29T17:12:32,487][WARN ][o.e.d.PeerFinder         ] [es-100] address [192.168.1.102:9300], node [null], requesting [false] discovery result: [][192.168.1.102:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由
[2024-03-29T17:12:32,777][WARN ][o.e.c.c.ClusterFormationFailureHelper] [es-100] master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [192.168.1.100:9300, 192.168.1.101:9300, 192.168.1.102:9300] to bootstrap a cluster: have discovered [{es-100}{UqM-XXwMT0OL8oEMiqEGCg}{xMMigptpR3W60N6XYhb-9Q}{es-100}{192.168.1.100}{192.168.1.100:9300}{cdfhilmrstw}{8.12.2}{7000099-8500010}]; discovery will continue using [192.168.1.101:9300, 192.168.1.102:9300] from hosts providers and [{es-100}{UqM-XXwMT0OL8oEMiqEGCg}{xMMigptpR3W60N6XYhb-9Q}{es-100}{192.168.1.100}{192.168.1.100:9300}{cdfhilmrstw}{8.12.2}{7000099-8500010}] from last-known cluster state; node term 0, last-accepted version 0 in term 0; for troubleshooting guidance, see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/discovery-troubleshooting.html
[2024-03-29T17:12:33,487][WARN ][o.e.d.PeerFinder         ] [es-100] address [192.168.1.101:9300], node [null], requesting [false] discovery result: [][192.168.1.101:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: 没有到主机的路由: /192.168.1.101:9300: 没有到主机的路由: /192.168.1.101:9300: 没有到主机的路由
[2024-03-29T17:12:33,487][WARN ][o.e.d.PeerFinder         ] [es-100] address [192.168.1.102:9300], node [null], requesting [false] discovery result: [][192.168.1.102:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由
[2024-03-29T17:12:34,489][WARN ][o.e.d.PeerFinder         ] [es-100] address [192.168.1.101:9300], node [null], requesting [false] discovery result: [][192.168.1.101:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: 没有到主机的路由: /192.168.1.101:9300: 没有到主机的路由: /192.168.1.101:9300: 没有到主机的路由
[2024-03-29T17:12:34,490][WARN ][o.e.d.PeerFinder         ] [es-100] address [192.168.1.102:9300], node [null], requesting [false] discovery result: [][192.168.1.102:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedNoRouteToHostException: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由: /192.168.1.102:9300: 没有到主机的路由

--------------------------------

ES的配置大概是这样的,看看到底是什么地方错了:

##允许所有节点访问

network.host: 0.0.0.0

##集群名称,同一个集群下所有节点的集群名称应该一致

cluster.name: 集群名称

##当前节点名称,每个节点不一样 node.name: 节点名称 ##数据的存放路径,每个节点位置不能一样 path.data:/路径/data

##日志的存放路径,每个节点位置不能一样 path.logs:/路径/logs

##HTTP协议的对外端口,默认:9200 http.port: 9200

##TCP协议对外端口,默认:9300 transport.port: 9300

##集群各节点地址及TCP协议的端口号

discovery.seed_hosts: ["192.168.1.100:9300", "192.168.1.101:9300", "192.168.1.102:9300"] cluster.initial_master_nodes: ["192.168.1.100:9300", "192.168.1.101:9300", "192.168.1.102:9300"]

##安全禁用

xpack.security.transport.ssl.enabled: false

xpack.security.enabled: false

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值