[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