I am unable to connect to the ES Server to search from an index in my python jupyter notebook in first go, but if i re-run the cell it will get fetch the required data from the ES
ES version : 7.17.3
Python Elasticsearch package version: 7.12.0
Python version : 3.6
from elasticsearch import Elasticsearch
es = Elasticsearch([VN_IP], http_compress=True, timeout=3000, max_retries=10, retry_on_timeout=True)
If it is working after re run then it won't be issue of connection. Is it possible to share the notebook or any reference doc which you following ? It is hard to assume anything without knowing any error and other information. Thanks
The jupyter notebook is hosted on azure server, so i coundn't able to share the file, and also Elasticsearch is also hosted in different azure server.
but the code that was used i shared already in the above
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.