我正在尝试使用以下命令修复我的分片
java -cp lucene-core-4.10.2.jar -ea:org.apache.lucene... org.apache.lucene.index.CheckIndex /var/lib/elasticsearch/elasticsearch/nodes/0/indices/XXX/0/index/ -fix
但是我收到以下错误
Error: Could not find or load main class org.apache.lucene.index.CheckIndex
答案 0 :(得分:0)
You have to run this command from the jars directory. They are at /usr/share/elasticsearch/lib in my ubuntu distribution.