首页 > 解决方案 > Brew 显示弹性搜索服务器正在运行,但对弹性搜索服务器的请求一直失败

问题描述

标签: bashmacoselasticsearch

解决方案


In logs I could find 'All shards failed' this error.

Running brew info elasticsearch@5.6 I got this:

Data:    /usr/local/var/elasticsearch/elasticsearch_suryapandian/

Logs:    /usr/local/var/log/elasticsearch/elasticsearch_suryapandian.log

Plugins: /usr/local/opt/elasticsearch@5.6/libexec/plugins/

Config:  /usr/local/etc/elasticsearch/

plugin script: /usr/local/opt/elasticsearch@5.6/libexec/bin/elasticsearch-plugin

After uninstalling elastic search using brew brew uninstall elasticsearch@5.6

Manually I checked in all these locations if any of elasticsearch was still present and removed all of it.To make sure that all the old shards gets deleted.

Then I installed elasticsearch again. Now elasticsearch is running smoothly.


推荐阅读