Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version #1906

Closed
r3dAngel opened this issue Jan 23, 2025 · 1 comment
Closed

version #1906

r3dAngel opened this issue Jan 23, 2025 · 1 comment

Comments

@r3dAngel
Copy link

Hello, does the latest version of Earally2.11 no longer support the OSS version of ES cluster?
The es cluster information I want to connect to is:
{
"name" : "es-qknuapzejd-nodes-0",
"cluster_name" : "test-xn19",
"cluster_uuid" : "s1x6Uy5rTG6k_J-KcOZXdA",
"version" : {
"number" : "7.10.2",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "747e1cc71def077253878a59143c1f785afa92b9",
"build_date" : "2021-01-13T00:42:12.435326Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
When using esrally for testing, I got an error message:
[ERROR] Cannot race. Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/esrally/actor.py", line 92, in guard
return f(self, msg, sender)
File "/usr/local/lib/python3.9/site-packages/esrally/driver/driver.py", line 276, in receiveMsg_PrepareBenchmark
self.driver.prepare_benchmark(msg.track)
File "/usr/local/lib/python3.9/site-packages/esrally/driver/driver.py", line 730, in prepare_benchmark
self.wait_for_rest_api(es_clients)
File "/usr/local/lib/python3.9/site-packages/esrally/driver/driver.py", line 667, in wait_for_rest_api
if client.wait_for_rest_layer(es_default, max_attempts=40):
File "/usr/local/lib/python3.9/site-packages/esrally/client/factory.py", line 305, in wait_for_rest_layer
es.cluster.health(wait_for_nodes=f">={expected_node_count}")
File "/usr/local/lib/python3.9/site-packages/elasticsearch/_sync/client/utils.py", line 414, in wrapped
return api(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/elasticsearch/_sync/client/cluster.py", line 464, in health
return self.perform_request( # type: ignore[return-value]
File "/usr/local/lib/python3.9/site-packages/elasticsearch/_sync/client/_base.py", line 390, in perform_request
return self._client.perform_request(
File "/usr/local/lib/python3.9/site-packages/esrally/client/synchronous.py", line 178, in perform_request
_ProductChecker.raise_error(self._verified_elasticsearch, info_meta, info_body)
File "/usr/local/lib/python3.9/site-packages/esrally/client/synchronous.py", line 73, in raise_error
raise UnsupportedProductError(message, meta=meta, body=body)
elasticsearch.UnsupportedProductError: The client noticed that the server is not a supported distribution of Elasticsearch

@gareth-ellis
Copy link
Member

Hello,

The elasticsearch client library rally uses does not support the OSS versions of Elasticsearch, thus you need to use a newer Elasticsearch version, OR an older esrally version. It seems that 2.2.1 should probably would with OSS - https://github.com/elastic/rally/releases/tag/2.2.1 (the version after this, we upgraded to a newer Elasticsearch client which does not support OSS).

See: https://esrally.readthedocs.io/en/stable/versions.html

Note 7.10.2 is now no longer covered by the support, you should consider looking at using a newer version - either 7.17.X line, or moving up to 8.X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants