# Is it possible to run different jdk on elasticsearch client and cluster?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-run-different-jdk-on-elasticsearch-client-and-cluster/61139>\
**Category:** Elasticsearch\
**Created:** [September 21, 2016, 1:49pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-different-jdk-on-elasticsearch-client-and-cluster/61139 "2016-09-21T13:49:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Selvam\_ayyanar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/selvam_ayyanar/32/11101_2.png) [@Selvam\_ayyanar](https://discuss.elastic.co/u/Selvam_ayyanar)\
**Post date:** [September 21, 2016, 1:49pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-different-jdk-on-elasticsearch-client-and-cluster/61139/1 "2016-09-21T13:49:35Z")

</div>

HI All,

is it possible to run different jdk on elasticsearch client and cluster,

And also what happen is i use different jdk?

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [September 21, 2016, 2:22pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-different-jdk-on-elasticsearch-client-and-cluster/61139/2 "2016-09-21T14:22:38Z")

</div>

_Technically_, yes.

In practice, no, you shouldn't. It's unsupported to talk between different JDKs. Even different versions of the same JDK are discouraged heavily.

Sooo... I wouldn't use mixed JDKs. It's just asking for trouble, and if you run into problems, the official response will be "Sorry, not supported anyway" 🙂

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [September 21, 2016, 2:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-different-jdk-on-elasticsearch-client-and-cluster/61139/3 "2016-09-21T14:34:46Z")

</div>

If you spoke over the REST api it'd be just fine. But the Java REST client coming out with 5.0 is very very low level. Not convenient yet.

---

<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:** [July 5, 2017, 10:18pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-different-jdk-on-elasticsearch-client-and-cluster/61139/4 "2017-07-05T22:18:31Z")

</div>


