# Rally and JDK errors

**URL:** <https://discuss.elastic.co/t/rally-and-jdk-errors/152807>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [October 17, 2018, 11:00am UTC](https://discuss.elastic.co/t/rally-and-jdk-errors/152807 "2018-10-17T11:00:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rifat\_Erdem\_Sahin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rifat_erdem_sahin/32/36560_2.png) [@Rifat\_Erdem\_Sahin](https://discuss.elastic.co/u/Rifat_Erdem_Sahin)\
**Post date:** [October 17, 2018, 11:00am UTC](https://discuss.elastic.co/t/rally-and-jdk-errors/152807/1 "2018-10-17T11:00:04Z")

</div>

I have installed rally into digital ocean and rally is not running

* * *

Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-36-generic x86\_64)

- Documentation: [https://help.ubuntu.com](https://help.ubuntu.com)
- Management: [https://landscape.canonical.com](https://landscape.canonical.com)
- Support: [https://ubuntu.com/advantage](https://ubuntu.com/advantage)

System information as of Wed Oct 17 10:39:21 UTC 2018

System load: 0.0 Processes: 115  
Usage of /: 2.0% of 154.90GB Users logged in: 1  
Memory usage: 5% IP address for eth0: 167.99.85.73  
Swap usage: 0% IP address for docker0: 172.17.0.1

Get cloud support with Ubuntu Advantage Cloud Guest:  
[http://www.ubuntu.com/business/services/cloud](http://www.ubuntu.com/business/services/cloud)

- Canonical Livepatch is available for installation.
  - Reduce system reboots and improve kernel security. Activate at:  
[https://ubuntu.com/livepatch](https://ubuntu.com/livepatch)

15 packages can be updated.  
0 updates are security updates.

Last login: Wed Oct 17 10:36:36 2018 from 195.171.72.11  
root@ubuntu-s-4vcpu-8gb-lon1-01:~# ^C  
root@ubuntu-s-4vcpu-8gb-lon1-01:~# ^C  
root@ubuntu-s-4vcpu-8gb-lon1-01:~# esrally --distribution-version=6.0.0

```
________

```

/ \_\_ \_\_\_\_ _/ / /_ \_\_  
/ /_/ / \_\_ `/ / / / / /  
/ , / // / / / // /  
/_/ |_|\ __,_/_/_/\__ , /  
/\_\_\_\_/

[INFO] Preparing for race ...  
[ERROR] Cannot race. ("Install a JDK with one of the versions [8] and point to i t with one of ['JAVA8\_HOME', 'JAVA\_HOME'].", None)  
Traceback (most recent call last):  
File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/mechanic.py", li ne 546, in receiveMsg\_StartNodes  
nodes = self.mechanic.start\_engine()  
File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/mechanic.py", li ne 682, in start\_engine  
self.nodes = self.launcher.start(node\_configs)  
File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/launcher.py", li ne 293, in start  
return [self.\_start\_node(node\_configuration, node\_count\_on\_host) for node\_co nfiguration in node\_configurations]  
File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/launcher.py", li ne 293, in   
return [self.\_start\_node(node\_configuration, node\_count\_on\_host) for node\_co nfiguration in node\_configurations]  
File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/launcher.py", li ne 302, in \_start\_node  
java\_major\_version, java\_home = self.\_resolve\_java\_home(car)  
File "/usr/local/lib/python3.6/dist-packages/esrally/mechanic/launcher.py", li ne 334, in \_resolve\_java\_home  
major, java\_home = jvm.resolve\_path(runtime\_jdk\_versions)  
File "/usr/local/lib/python3.6/dist-packages/esrally/utils/jvm.py", line 101, in resolve\_path  
.format(majors, \_checked\_env\_vars(majors)))  
esrally.exceptions.SystemSetupError: ("Install a JDK with one of the versions [8] and point to it with one of ['JAVA8\_HOME', 'JAVA\_HOME'].", None)

Getting further help:

* * *

- Check the log files in /root/.rally/logs for errors.
- Read the documentation at [https://esrally.readthedocs.io/en/1.0.1/](https://esrally.readthedocs.io/en/1.0.1/)
- Ask a question on the forum at [https://discuss.elastic.co/c/elasticsearch/rall](https://discuss.elastic.co/c/elasticsearch/rall) y
- Raise an issue at [https://github.com/elastic/rally/issues](https://github.com/elastic/rally/issues) and include the log files in /root/.rally/logs.

* * *

## [INFO] FAILURE (took 3 seconds)

root@ubuntu-s-4vcpu-8gb-lon1-01:~# java -version  
openjdk version "1.8.0\_181"  
OpenJDK Runtime Environment (build 1.8.0\_181-8u181-b13-0ubuntu0.18.04.1-b13)  
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)  
root@ubuntu-s-4vcpu-8gb-lon1-01:~#  
root@ubuntu-s-4vcpu-8gb-lon1-01:~# Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-36-generic x86\_64)  
-bash: syntax error near unexpected token `('  
root@ubuntu-s-4vcpu-8gb-lon1-01:~#  
root@ubuntu-s-4vcpu-8gb-lon1-01:~# \* Documentation: [https://help.ubuntu.com](https://help.ubuntu.com)  
Memory usage: 5% IP address for eth0: 167.99.85.73  
Swap usage: 0% IP address for docker0: 172.17.0.1

Get cloud support with Ubuntu Advantage Cloud Guest:  
[http://www.ubuntu.com/business/services/cloud](http://www.ubuntu.com/business/services/cloud)

- Canonical Livepatch is available for installation.
  - Reduce system reboots and improve kernel security. Activate at:  
[https://ubuntu.com/livepatch](https://ubuntu.com/livepatch)

15 packages can be updated.  
0 updates are security updates.

---

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [October 17, 2018, 4:36pm UTC](https://discuss.elastic.co/t/rally-and-jdk-errors/152807/2 "2018-10-17T16:36:59Z")

</div>

This has been addressed in the reply here: [https://github.com/elastic/rally/issues/585#issuecomment-430499932](https://github.com/elastic/rally/issues/585#issuecomment-430499932) (but discuss is the correct place the ask this question, so thank you for that).

As per @danielmitterdorfer's answer in GH, there was a config issue (6.0 branch was missing from the repo [https://github.com/elastic/rally-teams](https://github.com/elastic/rally-teams)), which has been fixed now.

---

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [October 18, 2018, 8:07am UTC](https://discuss.elastic.co/t/rally-and-jdk-errors/152807/3 "2018-10-18T08:07:18Z")

</div>

Sorry for the quick reply without reading the essence of your question; seeing "digital ocean" I thought it's just a repost of the the ticket you raised in [https://github.com/elastic/rally/issues/585#issue-370683671](https://github.com/elastic/rally/issues/585#issue-370683671).

**First of all one request:**

Please don't post unformatted code as it's very hard to read.

Instead paste the text and format it with \</\> icon, and check the preview  
window to make sure it's properly formatted before posting it. This makes it  
more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

**Now to your question:**

As can be seen in the output you posted:

`Install a JDK with one of the versions [8] and point to i t with one of ['JAVA8_HOME', 'JAVA_HOME']`

you will need to have java-8 installed and at the very least ensure an environment variable `JAVA_HOME` is set correctly. Please refers to the Rally [Quickstart guide](https://esrally.readthedocs.io/en/stable/quickstart.html?highlight=java_home#install) and [Elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/setup.html).

---

<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:** [November 15, 2018, 8:07am UTC](https://discuss.elastic.co/t/rally-and-jdk-errors/152807/4 "2018-11-15T08:07:22Z")

</div>

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