赞
踩
Elasticsearch VS 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) | |
ticsearch 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.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
elasticsearch的下载地址:https://www.elastic.co/cn/downloads/elasticsearch
ik分词器的下载地址:https://github.com/medcl/elasticsearch-analysis-ik/releases
kibana可视化工具下载地址:https://www.elastic.co/cn/downloads/kibana
安装es之前确保系统已安装JDK(需要JDK1.8以上版本)
elasticsearch,el, kibana,版本需要一致,比如elasticsearch版本是7.6.1,那么el和kibana的版本也需要是7.6.1
2.1 下载es后,完成解压。解压完后的目录:
2.2 双击bin目录下的【elasticsearch.bat】即可启动es,默认启动后占用9200端口
2.3访问es
可通过【http://127.0.0.1:9200/ 】访问
2.4 安装ik分词器
下载对应的版本的zip包(es版本是8.7,el版本也是8.7),不要直接下载master分支的zip包
如果没有对应版本的lk,比如es7.17.10,参考:https://www.cnblogs.com/axianibiru/p/17451235.html ,个人学习的话用不着这么麻烦,找个有版本匹配的即可。
在 es 目录中的 \plugins 目录下新建 ik 目录,然后将下载完成的 elasticsearch-analysis-ik 解压至此目录下。
完成后重启es,即可应用ik分词器。
es的bin目录下cmd,输入elasticsearch-plugin list可查看安装的插件:
3.1 配置
下载解压kibana,需修改kibana中config目录下的【kibana.yml】文件,添加安装的es地址:
即:elasticsearch.url: "http://127.0.0.1:9200"
3.2 启动
在bin目录下,双击【kibana.bat】,启动Kibana。
3.3 访问
启动后,通过浏览器访问 【http://127.0.0.1:5601】即可访问kibana。
通过侧边菜单【Dev Tools】进行执行命令
————————————————
版权声明:本文为CSDN博主「懵懂无知、小菜鸟」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_39370907/article/details/99974710
相关文章:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。