全局JDK环境和ES自带的JDK混用导致的ES集群创建失败

es配置安全集群es使用的自带的jdk环境,如果服务器全局在有jdk的配置。会导致秘钥解析出问题。各种问题异常密钥解析异常。

错误日志1:

复制代码
[2024-12-20T17:10:44,700][WARN ][o.e.c.c.ClusterFormationFailureHelper] [es-node1] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [es-node1:9200, es-node2:9202] to bootstrap a cluster: have discovered [{es-node1}{f-lOebgqT52PTgkShdMnQw}{POtUMeK8SGuVRP5GBGdFkg}{192.168.113.187}{192.168.113.187:9300}{dilmrt}{ml.machine_memory=16655990784, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]; discovery will continue using [192.168.113.187:9302] from hosts providers and [{es-node1}{f-lOebgqT52PTgkShdMnQw}{POtUMeK8SGuVRP5GBGdFkg}{192.168.113.187}{192.168.113.187:9300}{dilmrt}{ml.machine_memory=16655990784, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

错误日志2:

复制代码
[elasticsearch-node1] failed to establish trust with server at [elasticsearch-node2]; the server provided a certificate with subject name [CN=instance] and fingerprint [ac748c91fa55f5d193c85c3be64a605c52d93894]; the certificate has subject alternative names [IP:192.168.113.187]; the certificate is issued by [CN=Elastic Certificate Tool Autogenerated CA]; the certificate is signed by (subject [CN=Elastic Certificate Tool Autogenerated CA] fingerprint [8474d3dc8c99880f30b2c60a9e8059dfd0d3d7a8] {trusted issuer}) which is self-issued; the [CN=Elastic Certificate Tool Autogenerated CA] certificate is trusted in this ssl context ([xpack.security.transport.ssl]

如果对你有帮助,一块也是爱

相关推荐
笨笨马甲几秒前
Qt的界面渲染体系
开发语言·qt
05大叔2 分钟前
Mybatis-Plus
java·开发语言·mybatis
LawrenceLan3 分钟前
38.Flutter 零基础入门(三十八):网络请求实战 http、dio —— 获取列表与刷新 UI
开发语言·前端·flutter·dart
HalvmånEver5 分钟前
6.高并发内存池的内存释放全流程
开发语言·c++·项目学习··高并发内存池
OxyTheCrack6 分钟前
【C++】简述Observer观察者设计模式附样例(C++实现)
开发语言·c++·笔记·设计模式
耶叶6 分钟前
kotlin的修饰符
android·开发语言·kotlin
Vic101018 分钟前
java的分布式协议
java·开发语言·分布式
刘一说10 分钟前
Git 工具知识全景图:从核心概念到高效协作实践
大数据·git·elasticsearch
格林威10 分钟前
工业相机图像高速存储(C#版):先存内存,后批量转存方法,附堡盟 (Baumer) 相机实战代码!
开发语言·人工智能·数码相机·opencv·计算机视觉·c#·halcon
MarsLord11 分钟前
ElasticSearch快速入门实战(1)-索引、别名、建模最佳实践
大数据·elasticsearch·搜索引擎