# Esrally will hang if I use elasticsearch 8.0.0-alpha1

**URL:** <https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [October 31, 2021, 8:32am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082 "2021-10-31T08:32:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![shankang](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@shankang](https://discuss.elastic.co/u/shankang)\
**Post date:** [October 31, 2021, 8:32am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/1 "2021-10-31T08:32:30Z")

</div>

Hi,  
My OS is Ubuntu 21.04. esrally will hang when I tried the following command.

# esrally --pipeline=from-distribution --distribution-version=8.0.0-alpha1 --track=geonames --challenge=append-no-conflicts --include-tasks="delete-index"

The last several lines of the log "~/.rally/logs/rally.log":  
2021-10-31 17:03:54,889 ActorAddr-(T|:37489)/PID:124618 esrally.actor INFO Cluster consisting of [{'host': '127.0.0.1', 'port': 39200}] will be provisioned by Rally.  
2021-10-31 17:03:54,890 ActorAddr-(T|:37489)/PID:124618 esrally.actor INFO Capabilities [{'coordinator': True, 'ip': '127.0.0.1', 'Convention Address.IPv4': '127.0.0.1:1900', 'Thespian ActorSystem Name': 'multiprocTCPBase', 'Thespian ActorSystem Version': 2, 'Thespian Watch Supported': True, 'Python Version': (3, 9, 5, 'final', 0), 'Thespian Generation': (3, 9), 'Thespian Version': '1635699831468'}] match requirements [{}].  
2021-10-31 17:03:54,905 ActorAddr-(T|:44235)/PID:124638 esrally.actor INFO Capabilities [{'coordinator': True, 'ip': '127.0.0.1', 'Convention Address.IPv4': '127.0.0.1:1900', 'Thespian ActorSystem Name': 'multiprocTCPBase', 'Thespian ActorSystem Version': 2, 'Thespian Watch Supported': True, 'Python Version': (3, 9, 5, 'final', 0), 'Thespian Generation': (3, 9), 'Thespian Version': '1635699831468'}] match requirements [{'coordinator': True}].

The console output is:  
[INFO] Preparing for race ...

I tried using 7.0.0 and it can complete successfully. Moreover, if I tried using version "7.15.1", it will report 'Cannot download Elasticsearch distribution from [[https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss)  
-7.15.1-linux-x86\_64.tar.gz]. Please check that the specified version [7.15.1] is correct.' Where can I get the latest support elasticsearch version?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 31, 2021, 3:11pm UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/2 "2021-10-31T15:11:00Z")

</div>

> [@shankang](#):
>
> [https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss)  
> -7.15.1-linux-x86\_64.tar.gz

There is no OSS distribution anymore, the last one was `7.10.2`, for any version above that you will need to use the elastic distribution with the elastic license.

---

<div class="post-metadata">

**Author:** ![shankang](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@shankang](https://discuss.elastic.co/u/shankang)\
**Post date:** [October 31, 2021, 11:14pm UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/3 "2021-10-31T23:14:09Z")

</div>

Thanks a lot for the information. Then can I use the latest Elasticsearch(8.0.0 or above)? I tried using the 8.0.0-alpha, the Elasticsearch could be downloaded successfully, but the esrally will always hang. Does anyone know the reason of the issue? How can I solve it?

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [November 1, 2021, 3:04am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/4 "2021-11-01T03:04:21Z")

</div>

1. The alpha2 has been out for a while, so I would try that one (though things around security have changed and it will enable security by default now)
2. You might be a little early if you are using the releases (and not dev mode). If it's working great, but I don't think this is actively built for it yet. Somewhat related see [update elasticsearch dependency by Ro0tk1t · Pull Request #1364 · elastic/rally · GitHub](https://github.com/elastic/rally/pull/1364) for some upgrading discussions even within 7.x.

---

<div class="post-metadata">

**Author:** ![shankang](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@shankang](https://discuss.elastic.co/u/shankang)\
**Post date:** [November 1, 2021, 3:22am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/5 "2021-11-01T03:22:53Z")

</div>

Thanks a lot. So the current Elasticsearch GitHub code can neither be used, right?

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [November 1, 2021, 3:50am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/6 "2021-11-01T03:50:04Z")

</div>

In development mode it should work against master (see [GitHub - elastic/rally: Macrobenchmarking framework for Elasticsearch](https://github.com/elastic/rally#installing-rally)), but it's quite fast moving, so what might work with the state of alpha1 or 2 of Elasticsearch I'm not sure of.

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 1, 2021, 11:48am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/7 "2021-11-01T11:48:20Z")

</div>

Hi @shankang, what version of Rally are you using? This can be retrieved with `esrally --version`

---

<div class="post-metadata">

**Author:** ![shankang](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@shankang](https://discuss.elastic.co/u/shankang)\
**Post date:** [November 1, 2021, 2:11pm UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/8 "2021-11-01T14:11:22Z")

</div>

My esrally version is 1.4.0.

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 1, 2021, 2:47pm UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/9 "2021-11-01T14:47:53Z")

</div>

Because of changes to the distribution naming schemes we had to update some code somewhere in the Rally 2.x era. I highly recommend you update to our latest version, `esrally==2.3.0`

---

<div class="post-metadata">

**Author:** ![shankang](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@shankang](https://discuss.elastic.co/u/shankang)\
**Post date:** [November 8, 2021, 8:31am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/10 "2021-11-08T08:31:37Z")

</div>

Thank you very much. The latest esrally seems to work normally now.  
I'm trying to optimize the Elasticsearch. Is there anyway to make esrally to use my developping Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Quentin\_Pradet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quentin_pradet/32/94192_2.png) [@Quentin\_Pradet](https://discuss.elastic.co/u/Quentin_Pradet)\
**Post date:** [November 8, 2021, 11:36am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/11 "2021-11-08T11:36:17Z")

</div>

You mean you're making changes to Elasticsearch and want to benchmark them?

- Rally can build Elasticsearch for you. It clones it in `src.root.dir` (the default is “~/.rally/benchmarks/src” but you can [change that value in rally.ini](https://esrally.readthedocs.io/en/stable/configuration.html#node)).
- Then, when running a benchmark you can [specify the git revision](https://esrally.readthedocs.io/en/stable/command_line_reference.html#revision), which allows to compare commits.

Can you please open a new topic if you have further questions?

---

<div class="post-metadata">

**Author:** ![shankang](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@shankang](https://discuss.elastic.co/u/shankang)\
**Post date:** [November 9, 2021, 3:39am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/12 "2021-11-09T03:39:10Z")

</div>

Thank you very much for your quick reponse. It really saves my lots of time. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 7, 2021, 3:39am UTC](https://discuss.elastic.co/t/esrally-will-hang-if-i-use-elasticsearch-8-0-0-alpha1/288082/13 "2021-12-07T03:39:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
