I am trying to run the esrally in local , however it's getting connection aborted .
The curl to the elasticsearch host is working fine but not via esrally . Any help here please ?
esrally race --track=pmc --target-hosts=localhost:9200 --pipeline=benchmark-only --client-options="basic_auth_user:'elastic',basic_auth_password:'04CA3sd8FN7lYkfe6l27CW03'"
[INFO] Race id is [85121376-cadf-45a5-bb83-4e13ecd6831c]
[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/racecontrol.py", line 111, in receiveMsg_Setup
self.coordinator.setup(sources=msg.sources)
File "/usr/local/lib/python3.9/site-packages/esrally/racecontrol.py", line 194, in setup
) = client.factory.cluster_distribution_version(hosts, client_options)
File "/usr/local/lib/python3.9/site-packages/esrally/client/factory.py", line 349, in cluster_distribution_version
version = es.info()["version"]
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/__init__.py", line 2296, in info
return self.perform_request( # type: ignore[return-value]
File "/usr/local/lib/python3.9/site-packages/esrally/client/synchronous.py", line 168, in perform_request
info = self.transport.perform_request(method="GET", target="/", headers=request_headers)
File "/usr/local/lib/python3.9/site-packages/elastic_transport/_transport.py", line 328, in perform_request
meta, raw_data = node.perform_request(
File "/usr/local/lib/python3.9/site-packages/elastic_transport/_node/_http_urllib3.py", line 197, in perform_request
raise err from None
elastic_transport.ConnectionError: Connection error caused by: ConnectionError(Connection error caused by: ProtocolError(('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))))
I am using esrally : 2.10.0 and python : 3.9.18