Elasticsearch无法启动分片

时间:2015-04-11 12:00:02

标签: elasticsearch lucene elasticsearch-plugin elastica

我正在尝试使用以下命令修复我的分片

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

1 个答案:

答案 0 :(得分:0)

You have to run this command from the jars directory. They are at /usr/share/elasticsearch/lib in my ubuntu distribution.