Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ElasticSearch 2.0 upgrade now can't connect to server

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

like image 945
Nick Jacobs Avatar asked Oct 28 '15 23:10

Nick Jacobs


People also ask

How do I connect to Elasticsearch remotely?

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.


2 Answers

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

like image 145
keety Avatar answered Sep 30 '22 23:09

keety


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.

like image 21
Andrei Stefan Avatar answered Sep 30 '22 22:09

Andrei Stefan