Elasticsearch VSVS Java(jdk)版本兼容性

版本选择使用建议见文章末尾

Oracle/OpenJDK**/AdoptOpenJDK 1.8.0 Oracle/OpenJDK** 9 Oracle/OpenJDK** 10 Oracle/OpenJDK** 11 AdoptOpenJDK 11 Oracle/OpenJDK** 12 Oracle/OpenJDK**/AdoptOpenJDK 13 Oracle/OpenJDK**/AdoptOpenJDK 14 Oracle/OpenJDK**/AdoptOpenJDK 15 Oracle/OpenJDK**/AdoptOpenJDK/Temurin 16 Oracle/OpenJDK**/Temurin 17 Oracle/OpenJDK**/Temurin 18 Oracle/OpenJDK**/Temurin 19 IBM J9 (any version)
Elasticsearch 5.0.x X X X X X X X X X X X X X
Elasticsearch 5.1.x X X X X X X X X X X X X X
Elasticsearch 5.2.x X X X X X X X X X X X X X
Elasticsearch 5.3.x X X X X X X X X X X X X X
Elasticsearch 5.4.x X X X X X X X X X X X X X
Elasticsearch 5.5.x X X X X X X X X X X X X X
Elasticsearch 5.6.x X X X X X X X X X X X X X
Elasticsearch 6.0.x X X X X X X X X X X X X X
Elasticsearch 6.1.x X X X X X X X X X X X X X
Elasticsearch 6.2.x X X X X X X X X X X X X
Elasticsearch 6.3.x X X X X X X X X X X X X
Elasticsearch 6.4.x X X X X X X X X X X X X
Elasticsearch 6.5.x X X X X X X X X X X X X
Elasticsearch 6.6.x X X X X X X X X X X X X
Elasticsearch 6.7.x X X X X X X X X X X X
Elasticsearch 6.8.x X X X X
Elasticsearch 7.0.x X X X X X X X X X X X
Elasticsearch 7.1.x X X X X X X X X X X X
Elasticsearch 7.2.x X X X X X X X X X X X
Elasticsearch 7.3.x X X X X X X X X X X X
Elasticsearch 7.4.x X X X X X X X X X X
Elasticsearch 7.5.x X X X X X X X X X X
Elasticsearch 7.6.x X X X X X X X X X X
Elasticsearch 7.7.x X X X X X X X X X X
Elasticsearch 7.8.x X X X X X X X X X X
Elasticsearch 7.9.x X X X X X X X X X
Elasticsearch 7.10.x X X X X X X X X X
Elasticsearch 7.11.x X X X X X X X X X X
Elasticsearch 7.12.x X X X X X X X X X
Elasticsearch 7.13.x X X X X X X X X X X
Elasticsearch 7.14.x X X X X X X X X X X
Elasticsearch 7.15.x X X X X X X X X X
Elasticsearch 7.16.x X X X X X X X X X X
Elasticsearch 7.17.x X X X X X X X X
Elasticsearch 8.0.x X X X X X X X X X X X X X
Elasticsearch 8.1.x X X X X X X X X X X X X
Elasticsearch 8.2.x X X X X X X X X X X X X
Elasticsearch 8.3.x X X X X X X X X X X X X
Elasticsearch 8.4.x X X X X X X X X X X X X
Elasticsearch 8.5.x X X X X X X X X X X X

版本选择推荐及总结

  • ES 7.x 及之前版本,选择 Java 8
  • ES 8.x 及之后版本,选择 Java 17 或者 Java 18,建议 Java 17,因为对应版本的 Logstash 不支持 Java 18
  • Java 9、Java 10、Java 12 和 Java 13 均为短期版本,不推荐使用
  • M1(Arm) 系列 Mac 用户建议选择 ES 7.8.x 以上版本,因为考虑到 ELK 不同产品自身兼容性,7.8.x以上版本原生支持 Arm 原生 JDK