ConnectionError: Initial connection to Elasticsearch failed #3145
Unanswered
khang-nguyen2907
asked this question in
Questions
Replies: 2 comments
-
Hey @khang-nguyen2907 I am confused about your post - why are launching a local instance of the ES server and then trying to connect ElasticsearchDocumentStore to a remote es somewhere on the cloud? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@khang-nguyen2907 You should remove the https:// from the host parameter. Also, you can get one year of free OpenSearch Services on AWS. It should be good for testing in your scenario. Running on Colab, you will lose any data when it resets. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, because of some reasons, I cannot install Elasticsearch for my computer, and I cannot use localhost:9200 to connect to ElasticsearchDocumentStore, I try to use ElasticsearchDocumentStore on Colab with following code:
I also follow the tutorial with ElasticsearchDocumentStore for setting up the environment on Colab. When I create my deployment on Elasticsearch page, I see the version is 8.4.1, then I change the version downloaded on Colab is the same with the version showing in my deployment, I already tried lower version and it failed, too.
The link passing to the
host
argument I get from copying Elasticsearch endpoint url onhttps://cloud.elastic.co/deployments/xxx
I also open the link I passed to the
host
argument and login with theusername
andpassword
, it returns information in json format like Elasticsearch is running. However, when I run the code, the error appeared as:I do not know how to solve this problem, I am new to Haystack and Elasticsearch. Moreover, most of solutions are on localhost, which I do not use. I want to use ElasticsearchDocumentStore on Colab to store the data in the database for using later, so that is the reason why I want to connect Elasticsearch cloud when initializing DocumentStore. Could you help me to figure out how to solve this please? I would be appreciated it, thank you.
Beta Was this translation helpful? Give feedback.
All reactions