要不要也来分享分享一下啊

elasticsearch 删除了data文件,启动报错

Elasticsearch | 作者 mh_wan | 发布于2020年01月19日 | 阅读数:2862

想删除es中存储的离线日志数据,就把data文件下的数据给清空了,后面启动一直报错:
[2020-01-19T15:50:05,487][WARN ][o.e.c.c.ClusterFormationFailureHelper] [ubuntu] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-1] to bootstrap a cluster: have discovered [{ubuntu}{mGf6AzxYT6O3Mp2XHPHJ2g}{HYaIl7_GR26zj8I4FxalKg}{10.113.56.16}{10.113.56.16:9300}{dilm}{ml.machine_memory=135073415168, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [127.0.0.1:9300, 127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9300, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{ubuntu}{mGf6AzxYT6O3Mp2XHPHJ2g}{HYaIl7_GR26zj8I4FxalKg}{10.113.56.16}{10.113.56.16:9300}{dilm}{ml.machine_memory=135073415168, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

es的yml配置文件
network.host: 10.113.56.16
http.port: 9200
cluster.initial_master_nodes: ["node-1"]
我单节点部署。
已邀请:

Charele - Cisco4321

赞同来自:

单机应该不会出现你这种情况吧。
你把data目录删掉,es启动时会新建数据目录。

要回复问题请先登录注册