Skip to content
Advertisement

Kafka Connect Error : java.lang.NoClassDefFoundError: org/apache/http/conn/HttpClientConnectionManager

I’m using docker with kafka and clickhouse. I want to connect ‘KsqlDB table’ and ‘clickhouse’ using ‘kafka connect’. So I referred to this document and modified ‘docker composite’.

here is my docker-compose

JavaScript

And This is Dockerfile-kafka-connect

JavaScript

And I typed this command in ‘KsqlDB’.

JavaScript

(‘S3_FINAL’ topic has AVRO format for both multi-key and values.)

And It doesn’t work. So I read the error message.

JavaScript

I looked into the problem, but I don’t know how to fill in the empty jar while using the docker. In addition, since this problem is a problem of CLASSPATH, I think it is a problem of setting. Will you be able to help me?

Advertisement

Answer

It was solved when ‘httpcomponents-client-4.5.13’ was downloaded through wget. I think ‘httpclient’ was needed in ‘clickhouse-jdbc’. I’m using clickhouse-jdbc-v0.2.6

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement