bash - Brew 显示弹性搜索服务器正在运行,但对弹性搜索服务器的请求一直失败
问题描述
解决方案
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.
推荐阅读
- c++ - 为什么`std::conj(double d)`不返回`double`而是`std::complex
`? - python - TypeError:“linehistory”对象不是迭代器
- node.js - 可以通过浏览器控制台访问firebase来创建用户吗?
- python - 如何从 AWS 胶水中的 Odata url 读取数据并写入 AWS 中的 S3 存储桶
- r - 在堆叠的 geom_col 图上叠加密度曲线?[包括代码和图像]
- python-3.x - TwitchIO:删除频道中的单个消息
- python - 在一个字段中保存多个值(Django)
- spring-boot - Spring Boot 应用程序中的空自动装配对象
- r - 如何将带有列表列的小标题转换为数据框列表
- php - 当我使用 PHP curl 向 Google Nest 设备的 SDM API 发送命令时出现“收到无效的 JSON 有效负载”错误