我有一台elasticsearch(1.1.0)服务器,在我的windows服务器虚拟机上运行良好,带有kibana、head和marvel插件。我尝试添加jetty插件,所以我:
从http://mvnrepository.com/artifact/com.sonian/elasticsearch-jetty -downloaded最新的jar(0.90.0)
在elasticsearch主文件夹中-put jar : /elasticsearch-1.1.0/
-open命令提示符,我转到elasticsearch主文件夹并编写以下命令行
D:\elasticsearch-1.1.0>bin\plugin -i jetty -u file:jetty.jar
-> Installing jetty...
Trying file:jetty.jar...
Downloading .DONE
Installed jetty into D:\elasticsearch-1.1.0\plugins\jetty
D:\elasticsearch-1.1.0>然后,我将下面这一行添加到我的elasticsearch.yml中(正如在https://github.com/sonian/elasticsearch-jetty中所说的那样):
http.type: com.sonian.elasticsearch.http.jetty.JettyHttpServerTransportModule现在,当我启动elasticsearch服务时,我得到了这个错误:
Windows could not start the elasticsearch 1.1.0(storage) service on Local Computer.
Error 1067: The process terminated unexpectedly.在elasticsearch日志中,我有以下内容:
2014-05-20 14:17:19,382][INFO ][node ] [MYNODE] version[1.1.0], pid[33652], build[2181e11/2014-03-25T15:59:51Z]
[2014-05-20 14:17:19,382][INFO ][node ] [MYNODE] initializing ...
[2014-05-20 14:17:19,413][INFO ][plugins ] [MYNODE] loaded [marvel, jetty], sites [marvel, cluster, head, kibana]
[2014-05-20 14:17:19,819][ERROR][bootstrap ] {1.1.0}: Initialization Failed ...
- NoClassDefFoundError[org/eclipse/jetty/util/log/Logger]
ClassNotFoundException[org.eclipse.jetty.util.log.Logger]我有很多麻烦,添加jetty插件,以确保访问es。如果有人能详细地给我解释一下,那就太有用了。
发布于 2014-05-21 00:53:17
Jetty插件的0.90版本与Elasticsearch的1.1.0版本不兼容。如果您转到github页面https://github.com/sonian/elasticsearch-jetty,您可以看到插件兼容性表并下载正确的版本。
https://stackoverflow.com/questions/23759814
复制相似问题