Code Monkey home page Code Monkey logo

Comments (3)

scholzj avatar scholzj commented on August 19, 2024

It looks like you are missing the tracing libraries. You will need to add the Jaeger Client and OpenTracing dependencies: https://github.com/scholzj/echo-sink/blob/main/pom.xml#L31-L40

I can try to have a look later if I can produce some fat-jar as an alternative. But adding these dependencies (and their dependencies) manually should get you started.

from echo-sink.

orinciog avatar orinciog commented on August 19, 2024

Hi,

Thank you for your advice.

It worked by adding the following jars to /opt/bitnami/kafka/libs.

jaeger-tracerresolver-1.0.0.jar                           okhttp-3.9.0.jar                      opentracing-util-0.33.0.jar
gson-2.8.2.jar                                            okio-1.13.0.jar                       libthrift-0.12.0.jar   
jaeger-client-1.0.0.jar                                   opentracing-api-0.33.0.jar            
jaeger-core-1.0.0.jar                                     opentracing-noop-0.33.0.jar           
jaeger-thrift-1.0.0.jar                                   opentracing-tracerresolver-0.1.8.jar

For those who are interested, I downloaded required jars with:
echo-sink-1.2.0/META-INF/maven/cz.scholz.kafka.connect/echo-sink$ mvn dependency:resolve

and after I put in libs folder only those libs which were not present.

I think you should provide a single uber jar with all required jars in it. Actually, this is the way that confluent recommends to ship a connector

A Kafka Connect plugin can be:

a directory on the file system that contains all required JAR files and third-party dependencies for the plugin. This is most common and is preferred.
a single uber JAR containing all of the class files for the plugin and its third-party dependencies.

Important

A plugin should never contain any libraries provided by the Kafka Connect runtime.

Source: https://docs.confluent.io/home/connect/userguide.html

Thank you.

from echo-sink.

scholzj avatar scholzj commented on August 19, 2024

Well, it is used mainly with Strimzi, which already packages the dependencies. And it is always better to avoid mixing dependencies since that might cause different versions to conflict etc. I might add fat-jar when I have time for it. But not sure when exactly will i get to it.

from echo-sink.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.