An alternative code up and running to use ELASTIC CLOUD on GCP from the really cool Haystack ! #4547
RodolpheCalvet
started this conversation in
Ideas
Replies: 3 comments 2 replies
-
@RodolpheCalvet Thanks for sharing and great to hear that you needed to change only very few lines of Haystack code to get it working for you with Elastic Cloud on GCP! |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi, thanks for sharing this. Does this change only work if running ES8 on ElasticCloud? I have ES8 running in AWS EC2 right now and haven't been able to get this working, still getting the same error as before. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi there! So the code in my imports from haystack etc.. (reqs seen w. conda
list) is:
- elasticsearch 7.17.9,
- farm-haystack 1.15.0rc0,
- protobuf 3.19.6
And my elastic cloud is separate from my Google app engine, not a package
offer from Google, w. the Elastic cloud instance running having happened to
be elastic8.6.2. Works fine!
Cheers
Le jeu. 22 juin 2023 à 8:25 AM, Scott ***@***.***> a écrit :
… Hi, thanks for sharing this. Does this change only work if running ES8 on
ElasticCloud? I have ES8 running in AWS EC2 right now and haven't been able
to get this working, still getting the same error as before.
—
Reply to this email directly, view it on GitHub
<#4547 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARDYHCTVOIJU5VTUKDWYESDXMPQN3ANCNFSM6AAAAAAWMCHQRM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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 everyone, wie geht's? Thank you for your amazing work the Haystack team!!
It takes a discussion for this because I couldn't PR, working from another project I couldn't figure it out sorry.
The idea is to share with you this recent setup, to ENABLE ELASTIC CONNEXION not only on aws but also on GCP, one of the three cloud offers supported by Elastic (looks like they don't have their own..).
It comes into two parts :
the code to try, if ever of any interest for anyone, ie copy/paste in the elasticsearch.py file. After several tries, it looks like the cheapest modification to the repo's code, hopefully it's fully working and these changes don't extend beyond the file. The "aws4auth" parameter could be changed for something more "cloud generic", then the branching be done to build the right client (Azure next?),
the full client-side code I used and tested (in Jupyter and PyCharm), that successfully wrote the remote elastic DB.
Looks like it also seemlessly overcomes the transitory procedure proposed by Elastic [https://www.elastic.co/guide/en/elasticsearch/client/python-api/master/migration.html#migration-compat-mode] to ease the move towards Elastic 8+, as will be the case for the team.
************** Suggested PR : From line 219 to 233 in ../haystack/document_stores/elasticsearch.py *********************
**************************** Code to run in nb, eg copy/paste in the middle of tutorial 13 ****************************
Beta Was this translation helpful? Give feedback.
All reactions