Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not initialize class io.lettuce.core.ClientOptions #36

Closed
oNddleo opened this issue Jul 23, 2021 · 8 comments
Closed

Could not initialize class io.lettuce.core.ClientOptions #36

oNddleo opened this issue Jul 23, 2021 · 8 comments

Comments

@oNddleo
Copy link

oNddleo commented Jul 23, 2021

I have a problem when i created kafka connect redis:
{"name":"sink","connector":{"state":"RUNNING","worker_id":"connect:8083"},"tasks":[{"id":0,"state":"FAILED","worker_id":"connect:8083","trace":"java.lang.NoClassDefFoundError: Could not initialize class io.lettuce.core.ClientOptions\n\tat com.github.jcustenborder.kafka.connect.redis.RedisSessionFactoryImpl$RedisSessionImpl.create(RedisSessionFactoryImpl.java:157)\n\tat com.github.jcustenborder.kafka.connect.redis.RedisSessionFactoryImpl.create(RedisSessionFactoryImpl.java:52)\n\tat com.github.jcustenborder.kafka.connect.redis.RedisSinkTask.start(RedisSinkTask.java:73)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.initializeAndStart(WorkerSinkTask.java:300)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:189)\n\tat org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)\n\tat org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n"}],"type":"sink"}
I don't know that is error by library or my config of kafka connect redis.

@jcustenborder
Copy link
Owner

@oNddleo How did you do the install? You need to make sure that you have all of the dependencies as well. Easiest way to install is via the Confluent Hub

@oNddleo
Copy link
Author

oNddleo commented Jul 23, 2021

Screen Shot 2021-07-23 at 08 56 20

@oNddleo How did you do the install? You need to make sure that you have all of the dependencies as well. Easiest way to install is via the Confluent Hub

Yeah, I sure that your repository i download and it called by docker

@jcustenborder
Copy link
Owner

Can you post more info about your docker file? Here are a couple examples of how I do do the install. The big key is to ensure that the plugin path is correct.

https://github.com/jcustenborder/cp-kafka-connect/blob/6.1.0/Dockerfile#L22
https://github.com/jcustenborder/cp-server-connect-operator/blob/6.1.0/Dockerfile#L22

@oNddleo
Copy link
Author

oNddleo commented Jul 23, 2021

Can you post more info about your docker file? Here are a couple examples of how I do do the install. The big key is to ensure that the plugin path is correct.

https://github.com/jcustenborder/cp-kafka-connect/blob/6.1.0/Dockerfile#L22
https://github.com/jcustenborder/cp-server-connect-operator/blob/6.1.0/Dockerfile#L22

Thanks, I will retry.
I checked it inside /usr/share/confluent-hub-components but when i create sinkconnector with curl so above exception

@oNddleo
Copy link
Author

oNddleo commented Jul 23, 2021

Screen Shot 2021-07-23 at 09 09 49

That's my Dockerfile, i use kafka redis and mongo connector all of us, kafka mongo connector successed but redis not, so I not found reason.

@jcustenborder
Copy link
Owner

Interesting. What happens if you use a later version of cp-kafka-connect?

@oNddleo
Copy link
Author

oNddleo commented Jul 23, 2021

Interesting. What happens if you use a later version of cp-kafka-connect?

My bad not trying another version. Thanks your reply. I will try this.

@oNddleo
Copy link
Author

oNddleo commented Jul 23, 2021

Interesting. What happens if you use a later version of cp-kafka-connect?

Thanks you very much. I fix that with later version.

@oNddleo oNddleo closed this as completed Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants