Curl -X GET http://localhost:9200 is working BUT not http//127.0.0.1:9200

Hello, I have installed Elasticsearch on Hortonworks Sandbox with HDP 2.2.4.2

  • YES I could start elastic search
  • YES curl is working

[alumno@sandbox ~]$ curl -X GET http://localhost:9200
{
"name" : "sandbox.hortonworks.com",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "yrpFq-ltSaq51zj7Von79w",
"version" : {
"number" : "7.3.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "4749ba6",
"build_date" : "2019-08-19T20:19:25.651794Z",
"build_snapshot" : false,
"lucene_version" : "8.1.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}

  • I tried different configuration in elasticsearch.yml But still curl is working but not http

#network.host: 192.168.0.1
#network.host: 0.0.0.0
network.bind_host: 127.0.0.1
#network.bind_host: localhost

  • I open the ports 9200 and 9300 in Hortonworks Sandbox with HDP 2.2.4.2

  • I saw in internet that we have to configure network.host: 0.0.0.0
    BUT when I do this, then elasticsearch don´t start.

Can someone have an idea of what I could try ?

Thank You -

To use network.host : 0.0.0.0 requires additional settings perhaps take a look at this post

You are missing a colon in the second URL. Is that just a typo here?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.