无法启动Elasticsearch

时间:2014-04-07 20:17:37

标签: macos elasticsearch homebrew kibana

在对Kibana中的查询进行简单更改后,我的Elasticsearch实例停止工作,我无法再次启动它。我在OSX上使用ES 0.90.9使用自制程序。

通常我会用它来启动ES:

elasticsearch -f -D es.config=/usr/local/opt/elasticsearch/config/elasticsearch.yml

然而,这会引发重复错误:

[2014-04-07 15:59:02,123][INFO ][node                     ] [Puck] version[0.90.9], pid[8758], build[a968646/2013-12-23T10:35:28Z]
[2014-04-07 15:59:02,128][INFO ][node                     ] [Puck] initializing ...
[2014-04-07 15:59:02,224][INFO ][plugins                  ] [Puck] loaded [mongodb-river, mapper-attachments, marvel], sites [river-mongodb, marvel]
[2014-04-07 15:59:04,553][INFO ][node                     ] [Puck] initialized
[2014-04-07 15:59:04,553][INFO ][node                     ] [Puck] starting ...
[2014-04-07 15:59:04,665][INFO ][transport                ] [Puck] bound_address {inet[/127.0.0.1:9302]}, publish_address {inet[/127.0.0.1:9302]}
[2014-04-07 15:59:07,727][INFO ][cluster.service          ] [Puck] new_master [Puck][gtub58OkR9SskDE0SfYobw][inet[/127.0.0.1:9302]], reason: zen-disco-join (elected_as_master)
[2014-04-07 15:59:07,778][INFO ][discovery                ] [Puck] elasticsearch_dannyjoris/gtub58OkR9SskDE0SfYobw
[2014-04-07 15:59:07,795][INFO ][http                     ] [Puck] bound_address {inet[/127.0.0.1:9202]}, publish_address {inet[/127.0.0.1:9202]}
[2014-04-07 15:59:07,796][INFO ][node                     ] [Puck] started
[2014-04-07 15:59:07,813][INFO ][gateway                  ] [Puck] recovered [0] indices into cluster_state
[2014-04-07 15:59:09,589][ERROR][marvel.agent.exporter    ] error connecting to [localhost:9200]
java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431)
    at java.net.Socket.connect(Socket.java:527)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:424)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:538)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    at sun.net.www.http.HttpClient.New(HttpClient.java:300)
    at sun.net.www.http.HttpClient.New(HttpClient.java:319)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.openConnection(ESExporter.java:313)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.openConnection(ESExporter.java:293)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.checkAndUpload(ESExporter.java:428)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.checkAndUploadIndexTemplate(ESExporter.java:464)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.checkAndUploadAllResources(ESExporter.java:341)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.openExportingConnection(ESExporter.java:190)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.exportXContent(ESExporter.java:246)
    at org.elasticsearch.marvel.agent.exporter.ESExporter.exportNodeStats(ESExporter.java:134)
    at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.exportNodeStats(AgentService.java:274)
    at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:174)
    at java.lang.Thread.run(Thread.java:695)
[2014-04-07 15:59:09,591][ERROR][marvel.agent.exporter    ] Could not connect to any configured elasticsearch instances: [localhost:9200]

1 个答案:

答案 0 :(得分:1)

删除插件目录对我有用。

可以在path.plugins设置下的配置文件中找到plugins目录的位置。 e.g。

# Path to where plugins are installed: path.plugins: /usr/local/var/lib/elasticsearch/plugins

您可以找到默认插件路径here

这不应该破坏你的奇迹数据,但我保证不会。