I've had an elastic server cluster running for a few months now. 2 node cluster. Pretty simple, things were working pretty nice.
So, I upgraded from 1.7.2 to 2.0.0 today and now I can't get to my servers.... If I curl on the server using local host, everything works fine, if I curl on the machine using it's machine name, I get connection refused.
Upgrading is the only thing that's changed. Any ideas why elastic isn't seeing anything when I use the machine name?
Thanks, Nick
To access the Elasticsearch server from another computer or application, make the following changes to the node's /opt/bitnami/elasticsearch/config/elasticsearch. yml file: network. host: Specify the hostname or IP address where the server will be accessible.
FWIW you can set the network.host: 0.0.0.0
in elasticsearch.yml
or launch as
follows : bin/elasticsearch --network.host 0.0.0.0
This way you should be able to access the cluster in loopback
as well as non_loopback
This is, probably, the change in 2.0 that made the cluster accessible only via localhost
.
Update each elasticsearch.yml
file and provide a network.host
for the node.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With