ElasticSearch启动错误-默认发现设置不适合生产使用; [英] ElasticSearch start up error - the default discovery settings are unsuitable for production use;
问题描述
我尝试在elasticsearch.yaml文件中提供以下配置
I have tried giving the following configurations in the elasticsearch.yaml file
network.host:aa.bbb.ccc.dd
这是我的IPv4地址
和 http.port:9200
network.host: aa.bbb.ccc.dd
that being my IPv4 Address
and http.port: 9200
当我尝试在Windows计算机上运行elasticsearch.bat时,情况如下:
The response to this is as follows when I try to run elasticsearch.bat on my windows machine:
默认发现设置不适合生产使用;至少必须配置[discovery.seed_hosts,discovery.seed_providers,cluster.initial_master_nodes之一]
我真的不太确定该怎么做。配置集群初始化。默认值为 discovery.seed_hosts:[ host1, host2]
和 cluster.initial_master_nodes:[ node-1, node -2]
I am really not quite sure what to configure for the cluster initialization. The default values are discovery.seed_hosts: ["host1", "host2"]
and cluster.initial_master_nodes: ["node-1", "node-2"]
推荐答案
简而言之,如果您在本地运行Elasticsearch(单节点)或只需在云上有一个节点,然后在 elasticsearch.yml
中使用下面的配置即可避免生产检查并使其正常运行,有关此配置的更多信息< a href = https://stackoverflow.com/a/60426167/4039431>此SO 答案:
In short, if you are running Elasticsearch locally(single node) or just with a single node on the cloud then just use below config in your elasticsearch.yml
to avoid the production check, and to make it work, more info about this config in this SO answer:
discovery.type: single-node
这篇关于ElasticSearch启动错误-默认发现设置不适合生产使用;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!