ElasticSearch 启动错误——默认发现设置不适合生产使用; [英] ElasticSearch start up error - the default discovery settings are unsuitable for production use;

查看:36
本文介绍了ElasticSearch 启动错误——默认发现设置不适合生产使用;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试在 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 以避免生产检查,并使其工作,在 this 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆