Hello,
Can the Java API client 8.x be used with Elasticsearch server 7.x?
Hello,
Can the Java API client 8.x be used with Elasticsearch server 7.x?
Welcome to our community!
That depends on your specific minor versions. Please see Compatibility | Java REST Client [7.17] | Elastic for more details.
Follow up with a similar question.
I'm running 7.15 today (both ES & REST client). Is there a document suggesting how to upgrade to say ES 8.5?
We don't do instance upgrade. We use double write.
We will have both 7.15 & 8.5 clusters running during the transition where the applications will double write to both clusters.
Once the new cluster (8.5) is loaded with enough data, we then switch the reader from old 7.15 to new 8.5 cluster. Then stop the double write from applications and thenshutdown the old 7.15 cluster.
Our applications consist of both java and python.
With such operation, what is the proper way to migrate our code from REST to API?
Any pointers will be highly appreciated.
Thanks.
Please create a new topic, as your question is a lot deeper than just version number compatibility.
Some additional details: if you're in a scenario with mixed 7.x and 8.x Elasticsearch server, using the Java API client 8.x may work with Elasticsearch server 7.x.
However, you will get better compatibility using the Java API client 7.x with Elasticsearch 8.x. The Java API client 7.x will send the necessary headers so that Elasticsearch server 8.x works in 7.x compatible mode.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.