ubuntu - elasticsearch-head插件安装后,启动问题!
PHP中文网
PHP中文网 2017-04-24 09:12:31
0
3
2418

1.系统环境:
 ubuntu12.04 elasticsearch5.11 node 7.2.1 npm 4.05
2.安装elasticsearch之后,可以启动,能够访问http://localhost:9200
返回代码:
{
"name" : "D7ff-uK",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "bl9WuKWVQ6m0TAxHM3UhgA",
"version" : {

"number" : "5.1.1",
"build_hash" : "5395e21",
"build_date" : "2016-12-06T12:36:15.409Z",
"build_snapshot" : false,
"lucene_version" : "6.3.0"

},
"tagline" : "You Know, for Search"
}

只在一台主机上安装,只有一个节点。

但是安装完插件head之后,elasticsearch不能启动出现报错.

3.head插件安装,启动之后能够启动,能够使用网址访问到相应的界面。

4.报错内容为:
2016-12-16T07:51:20,581[o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: Property [elasticsearch.version] is missing for plugin [head]

at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.cli.Command.main(Command.java:62) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) ~[elasticsearch-5.1.1.jar:5.1.1]

Caused by: java.lang.IllegalArgumentException: Property [elasticsearch.version] is missing for plugin [head]

at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:104) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:292) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:131) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.node.Node.<init>(Node.java:294) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.node.Node.<init>(Node.java:229) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Bootstrap$6.<init>(Bootstrap.java:214) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:214) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-5.1.1.jar:5.1.1]
... 6 more

这是什么原因造成的呢?求大神们答疑解惑!

PHP中文网
PHP中文网

认证高级PHP讲师

모든 응답(3)
伊谢尔伦

5.1에서는 Elasticsearch-head

  • elasticsearchplugins 또는 modules 디렉토리

  • 에 배치할 수 없습니다.
  • 사용 불가 elasticsearch-plugin install

직접 시작하세요elasticsearch

elasticsearch-head 설치

  1. 수정elasticsearch/config/elasticsearch.yml

  2. 추가

    으아악
  3. elasticsearch-head 또는 git clone을 원하는 폴더에 다운로드하세요

  4. 설치nodejs

  5. cd /path/to/elasticsearch-head

  6. npm install -g grunt-cli

  7. npm install

  8. grunt server

  9. http://localhost:9100/

  10. 즐기세요.

迷茫

꼭 추가하세요

으아악
巴扎黑

같은 문제가 발생했습니다. 마크

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!