Easysearch、Elasticsearch 还是 Opensearch,是个问题

安装kibana7.5.2报错Unable to connect to Elasticsearch.

Kibana | 作者 datadog | 发布于2020年02月11日 | 阅读数:15274

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启动,然后发现连接不上显示以下错误:
微信图片_20200211185737.png

文字版:
 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];
  log   [10:16:13.762] [warning][migrations] Unable to connect to Elasticsearch. Error: [cluster_block_exception] index [.kibana_1] blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
  log   [10:16:41.112] [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:17:11.114] [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:17:41.117] [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:18:11.121] [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:18:41.123] [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:19:11.126] [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:19:41.129] [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
两个连接不上的错误,然后再循环显示下面的警告,后来我直接就关了。请问又大神可以帮一下忙吗?百度找不到解决的方案
已邀请:

datadog - 大数据开发,数据分析,数据挖掘的农民工

赞同来自:

这个问题我自行解决了,改了以下配置就可以了,有大神知道是为啥吗?
discovery.zen.minimum_master_nodes: 1 #最多的主节点个数
gateway.recover_after_nodes: 1 #超时后生效的节点数

要回复问题请先登录注册