iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

Need guidance in cloud deployment of Iceberg Kafka Sink Connector as plugin to Kafka connect

Open mgpradeepa opened this issue 1 year ago • 3 comments

Query engine

Iceberg Kafka Connect/Runtime

Question

I have to deploy the Iceberg Kafka sink connector into cloud deployment. Currently I have created a docker image where in I have added the unzipped folder from distribution folder to plugin base path directory. Though the same procedure works when I deploy the Iceberg sink connector using docker-compose, in the cloud deployment I just see plugin added in the connect logs. When I check the list of connector-plugins I dont see IcebergSinkConnector one among.

Further Details : PluginBasePath = /etc/kafka-connect/connectors/kafka-iceberg-sink. As there is no exception in the connect logs, unable to trace the issue.

Any suggestions or hints would unblock me.

mgpradeepa avatar Oct 23 '25 09:10 mgpradeepa

It is difficult to identify the issue without seeing your build artefact: specifically, the Dockerfile that shows the base images and how you prepared the plugin and path.

Since you're not seeing the connector class, the Connect worker is either looking in the wrong location or failing to load the files it finds.

If you're using a standard Confluent image (like confluentinc/cp-kafka-connect), verify the plugin path by checking the CONNECT_PLUGIN_PATH environment variable within your container. This should help you narrow down whether this is a pathing issue or a loading issue.

cspoppuppy avatar Oct 28 '25 16:10 cspoppuppy

It is difficult to identify the issue without seeing your build artefact: specifically, the Dockerfile that shows the base images and how you prepared the plugin and path.

Since you're not seeing the connector class, the Connect worker is either looking in the wrong location or failing to load the files it finds.

If you're using a standard Confluent image (like confluentinc/cp-kafka-connect), verify the plugin path by checking the CONNECT_PLUGIN_PATH environment variable within your container. This should help you narrow down whether this is a pathing issue or a loading issue.

Hi @cspoppuppy The docker image that I build is a simple ENV mount_dir=/connectors/

RUN mkdir -p $mount_dir/kafka-iceberg-sink #COPY target/datalake-sink-connector/iceberg-kafka-connect-runtime-1.0.0/lib $mount_dir/kafka-iceberg-sink/

Environment variable CONNECT_PLUGIN_PATH points to /etc/kafka-connect/connectors as mentioned earlier which looks fine. Other connectors are also loaded into the same path and working fine. Only icebergsinkconnector is not loading the classes for the connector.

I am also trying to build a shaded runtime jar (uber-jar) instead of zip and load. It loads the plugin but goes to wait and results in CrashLoopBackOff.

mgpradeepa avatar Oct 29 '25 07:10 mgpradeepa

As all other implemented connectors were deployed, was trying to enable the iceberg sink connector also with it. The connect image that I was using was supporting java8. Once I upgraded the connect base image to a compatible one with java11, I was able to use the iceberg sink connector.

Issue is resolved.

mgpradeepa avatar Nov 16 '25 10:11 mgpradeepa