# Does rally support jdk 1.7?

**URL:** <https://discuss.elastic.co/t/does-rally-support-jdk-1-7/95124>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [July 31, 2017, 6:34am UTC](https://discuss.elastic.co/t/does-rally-support-jdk-1-7/95124 "2017-07-31T06:34:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liyuhui](https://avatars.discourse-cdn.com/v4/letter/l/b487fb/32.png) [@liyuhui](https://discuss.elastic.co/u/liyuhui)\
**Post date:** [July 31, 2017, 6:34am UTC](https://discuss.elastic.co/t/does-rally-support-jdk-1-7/95124/1 "2017-07-31T06:34:30Z")

</div>

In my product environment , I have to user jdk 1.7 . So I can't use the lastest ELK. This is my enviroments information :

es: 2.4.4  
logstash: 2.4.1  
kibana: 4.6.4

Now I need to install esrally for test, I want to ask if esrally support the environment above.  
And I saw the doc of esrally, does it have to be python3.4+ ? I only got python2.7.5, because it is used in other program, so I can't change it.

Thanks for your help !

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [July 31, 2017, 12:23pm UTC](https://discuss.elastic.co/t/does-rally-support-jdk-1-7/95124/2 "2017-07-31T12:23:28Z")

</div>

Hi @liyuhui,

if you benchmark only versions up to Elasticsearch 2.x (which require at least Java 7), this should work. Rally will try to autodetect JDK 8, won't find it and it should ask you for the JDK 8 home directory. But it does not verify the Java version so you can just enter your JDK 7 home directory. However, please note that you cannot benchmark newer versions of Elasticseach (like 5.x) because they require Java 8 and will fail otherwise.

Python 3.4 or later is a hard requirement. Rally will not work with any version of Python 2. However, it is not a problem to install Python 2 and Python 3 together on the same machine. You can also look into [virtualenv](https://virtualenv.pypa.io/en/stable/).

Btw, what you need to install also depends how you want to benchmark. E.g. if you set up the cluster yourself then neither Rally nor its prerequisites such as Python 3 need to be installed on the machine where Elasticsearch is installed but only on the load test driver machine (see the [recipes in the docs](http://esrally.readthedocs.io/en/latest/recipes.html#benchmarking-an-existing-cluster) for a a complete example).

Daniel

---

<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:** [August 28, 2017, 12:24pm UTC](https://discuss.elastic.co/t/does-rally-support-jdk-1-7/95124/3 "2017-08-28T12:24:07Z")

</div>

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