scholzj / echo-sink Goto Github PK
View Code? Open in Web Editor NEWKafka Connect plugin which logs messages into log
License: Apache License 2.0
Kafka Connect plugin which logs messages into log
License: Apache License 2.0
Hi!
I'm using your sink, v1.2.0 in a custom Kafka Connect Docker Image, but when I try to start a connector, I receive the following message:
[2021-07-08 15:32:28,797] ERROR WorkerSinkTask{id=EchoSinkConnector-0} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted (org.apache.kafka.connect.runtime.WorkerTask:184)
java.lang.NoClassDefFoundError: io/opentracing/util/GlobalTracer
at cz.scholz.kafka.connect.echosink.EchoSinkTask.start(EchoSinkTask.java:44)
at org.apache.kafka.connect.runtime.WorkerSinkTask.initializeAndStart(WorkerSinkTask.java:308)
at org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:196)
at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:182)
at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:231)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ClassNotFoundException: io.opentracing.util.GlobalTracer
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at org.apache.kafka.connect.runtime.isolation.PluginClassLoader.loadClass(PluginClassLoader.java:104)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
The dockerfile that I'm using is:
FROM bitnami/kafka:2.8.0
USER root:root
RUN mkdir -p /opt/bitnami/kafka/plugins
RUN wget -q https://github.com/scholzj/echo-sink/releases/download/1.2.0/echo-sink-1.2.0.jar -O /opt/bitnami/kafka/plugins/echo-sink-1.2.0.jar
USER 1001
CMD ["/opt/bitnami/kafka/bin/connect-distributed.sh", "/opt/bitnami/kafka/config/connect-distributed.properties"]
and in connect-distributed.properties
I have a line with:
plugin.path=/opt/bitnami/kafka/plugins
The configuration of connector is:
connector.class=cz.scholz.kafka.connect.echosink.EchoSinkConnector
key.converter.schemas.enable=false
topics=topic-test
tasks.max=2
value.converter.schemas.enable=false
value.converter=org.apache.kafka.connect.storage.StringConverter
key.converter=org.apache.kafka.connect.storage.StringConverter
Other connectors (i.e FileStreamSinkConnector) are working fine.
The error is correct, in echo-sink 1.2.0 jar there is no opentracing jar. Actually there are no extra jars inside provided jar.
How can I skip this error?
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.