全局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]

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

相关推荐
luj_17683 小时前
残熵算法实时化三大瓶颈突破
c语言·开发语言·网络·经验分享·算法
不听话坏4 小时前
Ignition篇(下 一) 动态执行前的事情
开发语言·前端·javascript
likeyi074 小时前
require 和 import的区别
开发语言·前端
远离UE44 小时前
UE5 compute shader 原子加
开发语言·c++·ue5
C+-C资深大佬4 小时前
C++ 显式类型转换详解:static_cast、dynamic_cast、const_cast、reinterpret_cast
开发语言·c++
KaMeidebaby5 小时前
卡梅德生物技术快报|抗体亲和力成熟工业化调控新机制:差异性浆细胞增殖工艺优化思路
java·开发语言·人工智能·算法·机器学习·架构·spark
luj_17686 小时前
心形曲线轨迹控制三大关键技术
c语言·开发语言·c++·经验分享·算法
Mininglamp_27186 小时前
Claude Code 封禁中国开发者之后:本地 AI 编程工具的替代方案实测
开发语言·人工智能·windows·开源软件·ai-native
思麟呀7 小时前
C++17(三)if constexpr+折叠表达式
开发语言·c++
醉城夜风~7 小时前
Java详解经典算法题:接雨水(三种实现方案+原理剖析)
java·开发语言·算法