直接删除所有Elasticsearch索引而不会卷曲

我开始elasticsearch,并得到错误:

java.lang.IllegalStateException: unable to upgrade the mappings for the index [[documents/xOOEXQB-RzGhQp7o7NNH9w]]

at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.checkMappingsCompatibility(MetaDataIndexUpgradeService.java:172) ~[elasticsearch-5.5.0.jar:5.5.0]

我不确定是什么原因导致了这种情况的发生。我确实做了一个, brew upgrade

elasticsearch但没有记下最新版本。我目前正在使用Elasticsearch 5.5。

我想清除所有用于Elasticsearch的映射/索引。我不需要这些数据进行测试。大多数文档说要使用

curl -XDELETE 'http://localhost:9200/_all'

但是,localhost:9200无法访问(以前是无法访问的),大概是因为无法正确启动elasticsearch,所以它有点像鸡和鸡蛋。

我有办法手动清除所有Elasticsearch数据吗?

回答:

您可能还有一些剩余的索引与最新的ES版本不兼容,最肯定的是您之前使用过ES1.x。

您可以简单地删除$ES_HOME/data/*文件夹下的任何内容。由于您ES_HOME是通过brew安装的,因此通常位于/usr/local/Cellar/elasticsearch

以上是 直接删除所有Elasticsearch索引而不会卷曲 的全部内容, 来源链接: utcz.com/qa/411314.html

回到顶部