I check docker network and both the containers are communicating, logged into kibana container and ping ealsticsearch node, able to get response.
As said in few places, tried all options like passing elasticsearch_hosts,elasticsearch_url in docker-compose. Still no luck. The same set-up was working on my local instance. This i am trying in production server. Kindly throw some solution?
@Bhanu_Praveen could you try to replace in your docker-compose.yml the following ELASTICSEARCH_URL=http://elasticsearch:9200 by ELASTICSEARCH_HOSTS=http://elasticsearch:9200 ?
@Bhanu_Praveen could you please double check your configuration with the one suggested in the documentation I linked above? Let me know if after replicating what we suggest you still experience any problem.
---
## Default Elasticsearch configuration from elasticsearch-docker.
## from https://github.com/elastic/elasticsearch-docker/blob/master/build/elasticsearch/elasticsearch.yml
#
cluster.name: "docker-cluster"
network.host: 0.0.0.0
# minimum_master_nodes need to be explicitly set when bound on a public IP
# set to 1 to allow single node clusters
# Details: https://github.com/elastic/elasticsearch/pull/17288
discovery.zen.minimum_master_nodes: 1
## Use single node discovery in order to disable production mode and avoid bootstrap checks
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
#
discovery.type: single-node
## X-Pack settings
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html
#
xpack.license.self_generated.type: trial
In my dev environment, everything working fine. I am trying to bring it up on production server, thats when the connectivity issue occurs. I tried same as you mentioned. Still issue exists. Thanks
If it's working for you locally, but not in another environment that leads me to believe it's environment related. Or, you are using a different configuration. What differences are there between what you are doing that is working, to what is not?
ya, got the issue fixed. Docker is picking IPv6 in production server which is not getting exposed all those ports. Enabled IPv4 and started working fine. Thanks for your time.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.