我曾尝试在 Ubuntu 14.04 上使用 apt 安装 elasticsearch 包,但是当我运行时sudo service elasticsearch status
,我得到以下输出:
* elasticsearch is not running
我尝试运行sudo service elasticsearch start
,并且它声称可以正常启动。
但是/var/log/elasticsearch中没有记录任何日志。
我尝试运行sudo /usr/share/elasticsearch/bin/elasticsearch
,并得到以下输出:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_7_0_0
at org.elasticsearch.Version.<clinit>(Version.java:50)
at org.elasticsearch.bootstrap.Bootstrap.<init>(Bootstrap.java:76)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:287)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
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:115)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
什么原因可能导致这个错误?
elasticsearch 文档似乎没有包含有关如何安装 lucene 或在何处配置其安装的信息。