ES 机器加入集群报 handshake failed 错误解决办法

最近在搞私有云机房迁移,有个es集群挪到新的平台后有台机器加入不了集群,数据都是复制过去的没有变动有点奇怪。表现是提示elastic用户集群认证失败,看日志有 [elastic02][] handshake failed. 报错信息。

后边在配置文件中把 改成当前机器ip顺利加入集群,mark一下。

[root@anzhihe ~]# hostname -I 

[root@anzhihe config]# cat /data/elastic/config/elasticsearch.yml escluster elastic02 /data/elastic/data
path.logs: /data/elastic/logs
http.port: 9200
discovery.seed_hosts: ["","",""]
cluster.initial_master_nodes: ["","",""] true true
xpack.license.self_generated.type: basic
xpack.monitoring.collection.enabled: true certificate /data/elastic/config/certs/elastic-certificates.p12 /data/elastic/config/certs/elastic-certificates.p12

官网这类问题也有答疑:Handshake failed. unexpected remote node

network.publish_host= should be the address that you expect other nodes to use for communication. says try talking to one of these hosts to find an elasticsearch cluster. The node it talks to then provides the cluster state, which would contain a list of all the nodes in the cluster + the the address (publish_host) that should be used to establish communication with each of those nodes.

network.bind_host = the interfaces that you want elasticsearch available on = a shortcut for setting both bind_host and publish_host 513


anzhihe 安志合个人博客,版权所有 丨 如未注明,均为原创 丨 转载请注明转自: | ☆★★每天进步一点点,加油!★★☆ | 



电子邮件地址不会被公开。 必填项已用*标注