无法在Karaf酒窖中加载类"com.hazelcast.instance.Node$2"



>我发现使用 Karaf 4.1.5 和 Karaf Cellar 4.1.2 时存在问题 创建包含 10 台具有 IPv4 连接的服务器的群集。起先 步骤卡拉夫安装和卡拉夫酒窖也然后榛子.xml文件编辑 用于在网络上配置 IP 接口。当安装完成时 服务器,我找到了群集节点列表中的所有 IP,但是当其中一个节点 重新启动(停止然后启动(,Hazelcast 崩溃和群集:* 命令打开 无法识别所有服务器。我在卡拉夫上发现了异常.log文件 榛子和 TCP/IP 连接异常错误。这种体验 一遍又一遍地重复。我想在以下情况下使用卡拉夫酒窖技术 关键项目比每次崩溃都可能导致大问题!请指导 我使用酒窖或通知我卡拉夫酒窖是否可靠。

Hazelcast 配置文件编辑如下:

<join>
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="true">
<interface>10.12.47.125</interface>
<interface>10.12.47.126</interface>
<interface>10.12.47.127</interface>
<interface>10.12.47.128</interface>
<interface>10.12.47.129</interface>
<interface>10.12.47.130</interface>
<interface>10.12.47.131</interface>
<interface>10.12.47.132</interface>
<interface>10.12.47.133</interface>
<interface>10.12.47.134</interface>
</tcp-ip>
<aws enabled="false">
<access-key>my-access-key</access-key>
<secret-key>my-secret-key</secret-key>
<!--optional, default is us-east-1 -->
<region>us-west-1</region>
<!--optional, default is ec2.amazonaws.com. If set, region shouldn't be set as it will override this property -->
<host-header>ec2.amazonaws.com</host-header>
<!-- optional, only instances belonging to this group will be discovered, default will try all running instances -->
<security-group-name>hazelcast-sg</security-group-name>
<tag-key>type</tag-key>
<tag-value>hz-nodes</tag-value>
</aws>
</join>

Karaf Cellar 4.1.2 与 Karaf 4.1.5不兼容。此问题的解决方案是将 Karaf 更新到 4.2.1 或更高版本。

相关内容

最新更新