无法在Mac上启动ElasticSearch [英] Can't start ElasticSearch on Mac

查看:576
本文介绍了无法在Mac上启动ElasticSearch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过 brew install elasticsearch 安装了 elasticsearch ,并以 brew服务启动了它。 ,但是 curl http://127.0.0.1:9200 显示连接被拒绝。我检查了端口: netstat -a -n | grep tcp | grep 9200 和一些 ipv4 在那里运行。好的,所以我打开 /usr/local/etc/elasticsearch/elasticsearch.yml 并将端口更改为 9300 并也未注释和更改: network.host:127.0.0.1 。当我执行 curl http://127.0.0.1:9300 时,仍显示连接被拒绝 OS MacOS High Sierra 10.13.4 。如果打开 /usr/local/var/log/elasticsearch/elasticsearch_nikitavlasenko.log ,错误似乎是:

I installed elasticsearch by brew install elasticsearch and started it with brew services start elasticsearch, however, curl http://127.0.0.1:9200 shows connection refused. I checked the port: netstat -a -n | grep tcp | grep 9200 and some ipv4 is running there. Ok, so I opened /usr/local/etc/elasticsearch/elasticsearch.yml and changed the port to 9300 and also uncommented and changed: network.host: 127.0.0.1. Still shows connection refused when I do curl http://127.0.0.1:9300. The OS is MacOS High Sierra 10.13.4. If we open /usr/local/var/log/elasticsearch/elasticsearch_nikitavlasenko.log the error seems to be:


数据路径[/ usr / local / var / lib / elasticsearch / elasticsearch_nikitavlasenko]中存在群集名称[elasticsearch_nikitavlasenko]子目录。这些路径下的所有数据必须在一个目录中上移到路径[/ usr / local / var / lib / elasticsearch]

Cluster name [elasticsearch_nikitavlasenko] subdirectory exists in data paths [/usr/local/var/lib/elasticsearch/elasticsearch_nikitavlasenko]. All data under these paths must be moved up one directory to paths [/usr/local/var/lib/elasticsearch]


推荐答案

这是Elasticsearch的Homebrew公式中存在错误的结果。

This was the result of a bug in the Homebrew formula for Elasticsearch. It was creating a directory with the node name which is no longer allowed for Elasticsearch.

公式已更新为从path.data中删除节点名称,并且不再创建该目录。无效的目录,应该可以解决此问题。

The formula has been updated to remove node name from path.data and no longer create the invalid directory which should resolve this problem.

这篇关于无法在Mac上启动ElasticSearch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆