CONNECT_BOOTSTRAP_SERVERS is required

Hi,

I am following the Kafka Connect 101 tutorial and have created a Dockerfile similar to the one in the tutorial:

FROM confluentinc/cp-kafka-connect-base:latest

ENV CONNECT_PLUGIN_PATH="/usr/share/java,/usr/share/confluent-hub-components"

RUN confluent-hub install --no-prompt neo4j/kafka-connect-neo4j:2.0.0

When I run it:

$ docker build -t docker-connect-a .
$ docker run -P docker-connect-a

I get an error message:

===> User
uid=1000(appuser) gid=1000(appuser) groups=1000(appuser)
===> Configuring ...
CONNECT_BOOTSTRAP_SERVERS is required.
Command [/usr/local/bin/dub ensure CONNECT_BOOTSTRAP_SERVERS] FAILED !

Do I have to pass the list of my Kafka bootstrap servers as an env var too?

Thanks.

Hi @bangarang

add the bootstrap server with

-e CONNECT_BOOTSTRAP_SERVERS=localhost:29092

best,
Michael

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.