Java 1.7 and ElasticSearch 6.5

We have an application which runs on java 1.7 and we can’t upgrade now to 1.8 due to some limitations, I want to use ElasticSearch 6.5.4 Can we use java 1.7 any chance? We are gonna use the _bulk, _search api etc to store and retrieve data..

No, the minimum required Java version for elasticsearch 6.5.4 is 8. You will have to run elasticsearch on another server where java 1.8 is allowed and connect to it using REST API.

Thanks for the clarification. But we have already installed ElasticSearch 5.5.1 which runs on Java 7 though it was mentioned in website that atleast Java 8 needs to be used. But we are using it with Java 7 and I don’t think any problem we faced till now. So will it be a problem if I forcefully use Java 7 after upgrading ES 5.5.1 to 6.5.4 ?

It will be a problem to use an unsupported version of Java, yes. I suspect Elasticsearch just won't start. The error message may be pretty bad though. That is a thing that we're (slowly) working on fixing.

Even if you manage to make Elasticsearch start by working around version checks, nobody tests it with java 7. So, you will be basically using untested software. I don't think it's a good idea.

Got it...Thanks for your reply. Yes I checked that though we are using 1.7 for our application we are actually using openjdk8 for ES in the same host. I came to know yesterday. Many thanks.

Got it, thanks for your reply. I checked that though we are using 1.7 for our application we are actually using openjdk8 for ES in the same host. I came to know yesterday.

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