Kibana 无法从 elasticsearch 加载数据。我可以在弹性搜索中看到下面的日志。我正在使用弹性搜索版本 1.4.2。这与负载有关吗?谁能帮我?
[2015-11-05 22:39:58,505][调试][操作.批量] [古怪] 观察者:来自群集服务的超时通知。 超时设置 [1m],自启动以来的时间 [1m]
默认情况下,弹性搜索以 http://localhost:9200 运行确保您在 kibana.ymal 中拥有正确的网址
<pre>
# Kibana is served by a back end server. This controls which port to use.
port: 5601
# The host to bind the server to.
#host: example.com
# The Elastic search instance to use for all your queries.
elasticsearch_url: "http://localhost:9200"
</pre>
弹性搜索配置中的 aslo elasticsearch.yaml 提供集群名称和 http.cors.allow-origin。
<pre>
# Cluster name identifies your cluster for auto-discovery. If you're running
# multiple clusters on the same network, make sure you're using unique names.
#
cluster.name: elasticsearch
http.cors.allow-origin: "/.*/"
</pre>
我可以通过为 Elasticsearch 设置一个新节点并通过将副本设置为 0 来清除未分配的分片来解决此问题。