单机ES启动报错总结归纳

问题1.

ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, 
cluster.initial_master_nodes] must be configured

如出现以下warning 可参考下面配置

[WARN ][o.e.c.c.ClusterFormationFailureHelper] [es] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [es_test] to bootstrap a cluster: have discovered [{es}{PtnG7nS_TG-SUwyE7fgO9Q}{3ToVRRaESrOk-dPyUpJCOw}{192.168.233.133}{192.168.233.133:9300}{dilmrt}{ml.machine_memory=8350646272, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9300, [::1]:9300] from hosts providers and [{es}{PtnG7nS_TG-SUwyE7fgO9Q}{3ToVRRaESrOk-dPyUpJCOw}{192.168.233.133}{192.168.233.133:9300}{dilmrt}{ml.machine_memory=8350646272, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

解决如下:

[root@test_ssh elasticsearch-7.9.3]# cat config/elasticsearch.yml 
#cluster.name: es_test
node.name: es_test
path.data: /data/elastic/data
path.logs: /data/elastic/logs
#bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["192.168.233.133"] 
transport.tcp.port: 9300
cluster.initial_master_nodes: ["es_test"]  #这里的node名称对应node.name
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12

# x-head 访问配置  master节点配置
http.cors.enabled: true
http.cors.allow-origin: "*"

其他相关报错文章参考:

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值