[DrainingHash] pulsar-client 4.0.1 with java.lang.ClassNotFoundException #23744
Unanswered
unicojoyhug
asked this question in
Q&A
Replies: 1 comment
-
You might have multiple versions of the Pulsar client in the classpath. The DrainingHash interface is included in the pulsar-client-admin-api module. One way to resolve this problem is to use the Pulsar BOM (unless you are using Spring Boot). For Spring Boot there's a specific solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Issue:
Upgrading
org.apache.pulsar:pulsar-client from version
from3.3.1
to4.0.1
- it fails to create the client withClassNotFoundException
as below:Implementation:
I use
pulsar-client
to create a client to consume events with addingAuthenticationOAuth2
.privateKey
is added withdata:application/json;base64,<base64-encoded value>
following doc - authentication-typesWhat I checked:
DrainingHashImpl
: the import path doesn't containDrainingHash
DrainingHash
interface is found in pulsar-client-admin-api/commonWhat I have tried:
pulsar-client-all
instead to see if I can get these all included, but it failed to find theDrainingHash
interface forDrainingHashImpl
Let me know if I need to supply more information or write this to somewhere else.
I'd love to know what I should do to avoid this error.
Beta Was this translation helpful? Give feedback.
All reactions