ubuntu - elasticsearch-head插件安裝後,啟動問題!
PHP中文网
PHP中文网 2017-04-24 09:12:31
0
3
2414

1.系統環境:
 ubuntu12.04 elasticsearch5.11 node 7.2.1 npm 4.05
2.安裝elasticsearch之後,可以啟動,能夠存取http://localhost:9200
回傳代碼:asticsearch之後,可以啟動,能夠存取http://localhost:9200
傳回碼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.elsearchsearch.bceptmentp.el. ] 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.<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

  • 不能放在elasticsearchpluginsmodules 目錄下

  • 不能使用 elasticsearch-plugin install

直接啟動elasticsearch即可

安裝 elasticsearch-head

  1. 修改 elasticsearch/config/elasticsearch.yml

  2. 添加

    http.cors.enabled: true
    http.cors.allow-origin: "*"
  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. Enjoy it.

迷茫

一定要記得加入

http.cors.enabled: true
http.cors.allow-origin: "*"
巴扎黑

遇到相同問題,mark

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!