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:
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]
curl http://localhost:9200 it is working fine.
In my case it never did. Besides, as you can see from my question, I already tried settingnetwork.host
elasticsearch.yml