系统是:ubuntu 16.04
elasticsearch版本:7.5.2
kibana版本:7.5.2
这两个安装包都是下载tar.gz包解压安装的
两个节点(我也知道最好三个。。可是目前机器就只有两个)
elasticsearch集群可以正常启动,遇到标题的错查了一下百度说加以下配置,可是我本来就加了:
network.host: 0.0.0.0
http.port: 9200
Kibana的kibana.yml我也是设置
server.host: "0.0.0.0"
设置好之后直接到bin目录./Kibana启动,然后发现连接不上显示以下错误:

文字版:
log [10:16:11.107] [warning][licensing][plugins] License information could not be obtained from Elasticsearch for the [data] cluster. TypeError: Cannot use 'in' operator to search for 'type' in null
log [10:16:13.761] [warning][migrations] Unable to connect to Elasticsearch. Error: [cluster_block_exception] index [.kibana_task_manager_1] blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized

本文记录了在Ubuntu16.04环境下,Kibana与Elasticsearch集群(版本7.5.2)连接失败的问题及解决过程。通过调整Elasticsearch配置,如discovery.zen.minimum_master_nodes和gateway.recover_after_nodes参数,最终解决了连接问题。
最低0.47元/天 解锁文章
5586





