Never mind, I found it. The problem is that newer versions of elasticsearch (> 7.14?) do over-eager version checking as described here <https://stackoverflow.com/questions/68992402/elasticsearch-error-the-client-noticed-that-the-server-is-not-a-supported-dist>. I ended up moving to https://opensearch.org/ <https://opensearch.org/> which looks like it's working. Apparently this affects multiple language bindings (Python, Ruby, JS, maybe others).
> On Jan 10, 2022, at 9:35 PM, Roy Smith <[email protected]> wrote: > > I'm exploring using elasticsearch in Toolforge. I'm running Python 3.7, with > elasticsearch==7.16.2 installed. When I run: > > def main(): > es = Elasticsearch(['elasticsearch.svc.tools.eqiad1.wikimedia.cloud:80']) > print(es.info()) > > I get: > >> elasticsearch.exceptions.UnsupportedProductError: The client noticed that >> the server is not a supported distribution of Elasticsearch > > Any idea what's wrong? Are we running some very old version of elasticsearch > server? > _______________________________________________ > Cloud mailing list -- [email protected] > List information: > https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/ >
_______________________________________________ Cloud mailing list -- [email protected] List information: https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/
