gpt4 book ai didi

java - Elasticsearch安装中的IndexFormatTooNewException(6.5.4)

转载 作者:行者123 更新时间:2023-12-03 01:17:38 25 4
gpt4 key购买 nike

我已经从Elastic Search下载页面下载了Elasticsearch6.5.4 msi安装程序exe。我已经按照网站上的安装程序中的步骤安装了Elastic search。当我尝试运行或启动 flex 搜索时,出现以下错误。

Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: org.apache.lucene.index.IndexFormatTooNewException: Format version is not supported (resource BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\ProgramData\Elastic\Elasticsearch\config\elasticsearch.keystore"))): 4 (needs to be between 1 and 3)
Likely root cause: org.apache.lucene.index.IndexFormatTooNewException: Format version is not supported (resource BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\ProgramData\Elastic\Elasticsearch\config\elasticsearch.keystore"))): 4 (needs to be between 1 and 3)
at org.apache.lucene.codecs.CodecUtil.checkHeaderNoMagic(CodecUtil.java:216)
at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:198)
at org.elasticsearch.common.settings.KeyStoreWrapper.load(KeyStoreWrapper.java:217)
at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:230)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:295)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)
Refer to the log for complete error details.
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to No such file or directory

请帮助我如何进行此安装。

最佳答案

我遇到过同样的问题。
删除Elasticsearch不会删除配置文件。
在centOs中,我删除了 flex 搜索

rpm -qa | grep "elasticsearch"
rpm -e --nodeps "output-of-above-command"
之后,我从/ etc和/ usr / share中删除了elasticsearch文件夹
rm -rf /etc/elasticsearch
rm -rf /usr/share/elasticsearch
之后,您可以安装所需的版本。

关于java - Elasticsearch安装中的IndexFormatTooNewException(6.5.4),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61784105/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com