Rally and JDK errors


(Erdem Sahin) #1

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)

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

  • Canonical Livepatch is available for installation.

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:



[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
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

  • Canonical Livepatch is available for installation.

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


(Dimitrios Liappis) #2

This has been addressed in the reply here: 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), which has been fixed now.


(Dimitrios Liappis) #3

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.

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 and Elasticsearch docs.


(system) #4

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