Hi @Rahul_Prajapati - thanks for your interest in Rally.
This error is returned because Rally's elasticsearch-py
client couldn't verify that the target cluster is actually an Elasticsearch cluster (see Verify connection to Elasticsearch by sethmlarson · Pull Request #1623 · elastic/elasticsearch-py · GitHub).
I tried this locally and didn't have any issues benchmarking 7.6.1:
$ esrally --version
esrally 2.7.0
Cluster:
$ curl -k -u elastic:changeme https://localhost:9200
{
"name" : "elasticsearch1",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "s09wHgUlS26MyBi9fDk9XQ",
"version" : {
"number" : "7.6.1",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",
"build_date" : "2020-02-29T00:15:25.529771Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
$ curl -k -u elastic:changeme https://localhost:9200/_license
{
"license" : {
"status" : "active",
"uid" : "07ae4064-3b4a-4dd4-b0c8-d7832c453281",
"type" : "basic",
"issue_date" : "2023-02-05T23:35:55.098Z",
"issue_date_in_millis" : 1675640155098,
"max_nodes" : 1000,
"issued_to" : "docker-cluster",
"issuer" : "elasticsearch",
"start_date_in_millis" : -1
}
}
Invocation:
$ esrally race --track=geopoint --target-hosts=localhost:9200 --pipeline=benchmark-only --client-options="use_ssl:true,verify_certs:false,basic_auth_user:elastic,basic_auth_password:changeme" --test-mode
____ ____
/ __ \____ _/ / /_ __
/ /_/ / __ `/ / / / / /
/ _, _/ /_/ / / / /_/ /
/_/ |_|\__,_/_/_/\__, /
/____/
[INFO] Race id is [b8be0843-02cd-4ab8-988a-a83932d82db1]
[INFO] Racing on track [geopoint], challenge [append-no-conflicts] and car ['external'] with version [7.6.1].
[WARNING] merges_total_time is 569927 ms indicating that the cluster is not in a defined clean state. Recorded index time metrics may be misleading.
[WARNING] indexing_total_time is 3297659 ms indicating that the cluster is not in a defined clean state. Recorded index time metrics may be misleading.
[WARNING] refresh_total_time is 349035 ms indicating that the cluster is not in a defined clean state. Recorded index time metrics may be misleading.
Running delete-index [100% done]
Running create-index [100% done]
Running check-cluster-health [100% done]
Running index-append [100% done]
Running refresh-after-index [100% done]
[...]
--------------------------------
[INFO] SUCCESS (took 32 seconds)
--------------------------------
That said, 7.6.1 has been End of Life for quite some time now, have you considered upgrading?