Facing Issue connecting Opensearch v1.3 with elastic search rest client version 7.17.x and using java 1.8

deleteOldIndices failed: Elasticsearch version 6 or more is required

org.elasticsearch.ElasticsearchException: Elasticsearch version 6 or more is required

at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2701)

should i upgrade my project to java 11 and use opensaerch rest client or is there any way to connect to opensaerch via Elasticsearch rest client?

even the error does not help it says upgrade to version 6 , dude i am alreadu using elastic version client 7.17.x…

If you are using Opensearch I would recommend using the Opensearch client library.

yeah updating ptoject to java 14 and using opensaerch/…

Otherwise use the real Elasticsearch :face_with_hand_over_mouth:

2 Likes