I have elasticsearch running on EC2 (Fedora),
I am unable to connect externally using the public ip or hostname.
ElasticSearch starts correctly and I can access locally on the machine using: curl -XGET http://localhost:9200
{
"name" : "Prodigy",
"cluster_name" : "awstutorialseries",
"version" : {
"number" : "2.1.0",
"build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87",
"build_timestamp" : "2015-11-18T22:40:03Z",
"build_snapshot" : false,
"lucene_version" : "5.3.1"
},
"tagline" : "You Know, for Search"
}
And I do follow all the steps explained here: elasticsearch on Ec2 cannot hit public IP(timeout)
like
- Do what TJ said in his comment, + restart the instance. I wasn't sure if this was/is necessary, but I did it for good measure.
- I made sure that the following is set in the elasticsearch.yml file: a. http.enabled: true b. http.cors.enabled: true c. http.cors.allow-origin: "*"
- Restarted elasticsearch (service elasticsearch restart)
I can connect kibana
But I can't connect to elasticsearch