elasticsearch报错:failed send ping to zen unicast

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37814112/article/details/81175576

故障日志

[2018-07-23T19:34:46,733][WARN ][o.e.d.z.UnicastZenPing ] [es-node2] [1] failed send ping to {#zen_unicast_47.98.97.124_0#}{rYCo6JscRLiztNERg_YpqQ}{47.98.97.124}{47.98.97.124:9300}

java.lang.IllegalStateException: handshake failed with {#zen_unicast_47.98.97.124_0#}{rYCo6JscRLiztNERg_YpqQ}{47.98.97.124}{47.98.97.124:9300}

Caused by: org.elasticsearch.transport.RemoteTransportException: [es-node1][172.16.102.26:9300][internal:transport/handshake]

故障分析

因为它ping不同主节点的IP地址47.98.97.124:9300。因为主节点我是安装了x-pack,安装x-pack后会有权限问题。所以我们也要在节点2中安装x-pack。

故障解决

[root@host-47-106-141-17 ~]# cd /usr/share/kibana/plugins/
[root@host-47-106-141-17 plugins]# /usr/share/kibana/bin/kibana-plugin install x-pack
Found previous install attempt. Deleting…
Attempting to transfer from x-pack
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-5.6.0.zip
Transferring 119526372 bytes………………..
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles…

安装x-pack后内置的账号:elastic密码:changeme

观察日志

[2018-07-23T20:18:33,283][INFO ][o.e.c.s.ClusterService ] [es-node2] detected_master {es-node1}{MnEFYeEWTmuEIxmVkDLdEg}{kdPCrNLeQ2OAixlz4UxD1w}{47.98.97.124}{47.98.97.124:9300}{ml.max_open_jobs=10,
ml.enabled=true}, added {{es-node1}{MnEFYeEWTmuEIxmVkDLdEg}{kdPCrNLeQ2OAixlz4UxD1w}{47.98.97.124}{47.98.97.124:9300}{ml.max_open_jobs=10, ml.enabled=true},}, reason: zen-disco-receive(from master [master {es-
node1}{MnEFYeEWTmuEIxmVkDLdEg}{kdPCrNLeQ2OAixlz4UxD1w}{47.98.97.124}{47.98.97.124:9300}{ml.max_open_jobs=10, ml.enabled=true} committed version [22]])
[2018-07-23T20:18:34,087][INFO ][o.e.l.LicenseService ] [es-node2] license [2a0d8d41-07d4-4505-9b7b-63b7d70db18e] mode [trial] - valid
[2018-07-23T20:18:34,135][INFO ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [es-node2] publish_address {47.106.141.17:9200}, bound_addresses {0.0.0.0:9200}
[2018-07-23T20:18:34,135][INFO ][o.e.n.Node ] [es-node2] started

注:发现另外一个节点已经找到了主机点

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页