【发布时间】:2015-12-10 15:52:01
【问题描述】:
我已经“尝试”从 elasticsearch-1.5.2 升级到 2.1.0,但在第一次启动尝试后,我的所有索引都已损坏。
启动失败,所以我回滚到 ES-1.5.2。
问题是现在我不能使用索引,因为 elasticsearch 会在 2-3 秒后死掉。
当我用这个检查索引时:
java -cp "*" -ea:org.apache.lucene... org.apache.lucene.index.CheckIndex PATH_TO_INDEX/node/0/indices/INDEX/SHARD/index/
我收到以下错误消息:
ERROR: could not read any segments file in directory
org.apache.lucene.index.IndexFormatTooNewException: Format version is not supported (resource: BufferedChecksumIndexInput(MMapIndexInput(path=.....)
当我尝试修复索引(使用 -fix)时,它也无法正常工作,我得到与上面相同的消息。
我认为在启动尝试期间,elasticsearch-2.1.0 更改了 "_state" 文件夹中的一些设置,这可能是我无法使用旧索引的原因。
知道如何修复我的索引吗?
【问题讨论】: