Connection issue between app and elastic search running in different instances in aws

(Jbalu) #1

Running elastic search in docker container in aws instance

docker run -d --name wsindex -p 9300:9300 -p 9200:9200 -v /var/db/elasticsearch/data:/usr/share/elasticsearch/data elasticsearch elasticsearch -Ediscovery.zen.minimum_master_nodes=1

Able to access this container with x.x.x.x:9200 but not with 9300 from remote

unable to connect from the application running in another instance.

getting the error

failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{x.x.x.x}{x.x.x.x:9300}]

(system) #2

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