1. Below is the file we are using for Jchannel configuration. This file is showing error because it's unable to find KUBE_PING in jgroups.xsd. Please provide xsd for jgroup kubernetes.
Â
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups" xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">
<TCP_NIO2 bind_port="8800" diagnostics_port="10599"
port_range="950" recv_buf_size="${tcp.recv_buf_size:230k}"
send_buf_size="${tcp.send_buf_size:230k}" max_bundle_size="64K"
sock_conn_timeout="300" thread_pool.min_threads="0"
thread_pool.max_threads="980" thread_pool.keep_alive_time="70000" />
<org.jgroups.protocols.kubernetes.KUBE_PING
namespace="my_namespace" labels="my_labels" />
......
</config>
Â
2. In our project , we have created a fat jar of jgroups-kubernetes-1.0.15.Final which is includes all package(jgroup standards and k8s) but still it's unable to find KUBE_PING, it's going to find out from org.jgroup.4.2.0.jar instead of jgroups-kubernetes-1.0.15.Final-E003.jar(which includeds jgroup standard and kubernetes jar)
Â
Caused by: java.lang.Exception: JGRP000002: unable to load protocol org.jgroups.protocols.kubernetes.KUBE_PING (either with relative - org.jgroups.protocols.kubernetes.KUBE_PING - or absolute - org.jgroups.protocols.org.jgroups.protocols.kubernetes.KUBE_PING - class name)
at org.jgroups.util.Util.loadProtocolClass(Util.java:2904)
Please let know how can resolve this.
Thanks,
Roshni Gupta
[INFO] +- org.jgroups:jgroups:jar:4.2.0.Final:compile
[INFO] +- junit:junit:jar:4.13:test
[INFO] | Â \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- org.assertj:assertj-core:jar:3.15.0:test
Thanks ,
Roshni Gupta
o.j.protocols.kubernetes.KUBE_PING - failed getting JSON response from Kubernetes Client[masterUrl=https://null:0/api/v1,; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.net.UnknownHostException: null]]
Could you please tell me what's the reason behind it.
Thanks,
Roshni
Caused by: java.lang.Exception: JGRP000002: unable to load protocol org.jgroups.protocols.kubernetes.KUBE_PING (either with relative - org.jgroups.protocols.kubernetes.KUBE_PING - or absolute - org.jgroups.protocols.org.jgroups.protocols.kubernetes.KUBE_PING - class name)
at org.jgroups.util.Util.loadProtocolClass(Util.java:2904)
Could you please help me on this.
Thanks,
Roshni