Docker Kafka-connect does not start. Having issues with onfiguration key.converter
See original GitHub issueHi,
When I try to start the confluentinc/cp-kafka-connect:latest
image, but without success. I got the following sack trace:
===> Launching kafka-connect ...
dev-kafka-connect | Exception in thread "main" org.apache.kafka.common.config.ConfigException: Invalid value "io.confluent.connect.avro.AvroConverter" for configuration key.converter: Class "io.confluent.connect.avro.AvroConverter" could not be found.
dev-kafka-connect | at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:715)
dev-kafka-connect | at org.apache.kafka.common.config.ConfigDef.parseValue(ConfigDef.java:460)
dev-kafka-connect | at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:453)
dev-kafka-connect | at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:62)
dev-kafka-connect | at org.apache.kafka.common.config.AbstractConfig.<init>(AbstractConfig.java:75)
dev-kafka-connect | at org.apache.kafka.connect.runtime.WorkerConfig.<init>(WorkerConfig.java:218)
dev-kafka-connect | at org.apache.kafka.connect.runtime.distributed.DistributedConfig.<init>(DistributedConfig.java:272)
dev-kafka-connect | at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:72)
Here is an extract of my docker-compose file:
kafka-connect:
image: confluentinc/cp-kafka-connect:latest
restart: always
container_name: dev-kafka-connect
depends_on:
- zookeeper
- kafka-broker
- kafka-schema-registry
env_file:
- ${ENV_BASE_DIR}/confluent/global.env
- ${ENV_BASE_DIR}/confluent/kafka-connect.env
network_mode: host
hostname: localhost
extra_hosts:
- "moby:127.0.0.1"
volumes:
- /tmp/quickstart/file:/tmp/quickstart
- /tmp/quickstart/jars:/etc/kafka-connect/jars
Here is my variables (cat of kafka-connect.env):
CONTROL_CENTER_ZOOKEEPER_CONNECT=127.0.0.1:2181
CONTROL_CENTER_BOOTSTRAP_SERVERS=127.0.0.1:9092
CONTROL_CENTER_REPLICATION_FACTOR=1
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS=1
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS=1
CONTROL_CENTER_STREAMS_NUM_STREAM_THREADS=1
CONTROL_CENTER_CONNECT_CLUSTER=http://127.0.0.1:8082
CONTROL_CENTER_LOG4J_LOGGERS="kafka.controller=ERROR"
CONTROL_CENTER_LOG4J_ROOT_LOGLEVEL=ERROR
CONTROL_CENTER_TOOLS_LOG4J_LOGLEVEL=ERROR
Bellow, some additional information’s:
uname -a
Linux HOSTNAME 4.14.15-1-ARCH #1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018 x86_64 GNU/Linux
docker --version
Client:
Version: 18.01.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: 03596f51b1
Built: Sun Jan 14 23:10:39 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.01.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: 03596f51b1
Built: Sun Jan 14 23:11:14 2018
OS/Arch: linux/amd64
Experimental: false
docker-compose --version
docker-compose version 1.18.0, build unknown
Thanks for your help. JR
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
cp-kafka-connect: Custom ConfigProvider ... - GitHub
Hey, I just tried the cp-kafka-connect docker image and I want to install some custom ConfigProviders. The Confluent documentation clearly ...
Read more >Kafka Connect issues when running in Docker
Hey everyone, I am having some issues when running Kafka Connect inside of Docker, so would really appreciate some feedback on what I'm ......
Read more >Using Kafka Connect with Schema Registry
To use Kafka Connect with Schema Registry, you must specify the key.converter or value.converter properties in the connector or in the Connect worker ......
Read more >Debezium docker-compose-mysql-avro-worker.yaml ...
AvroConverter for configuration key.converter: Class io.confluent.connect.avro.AvroConverter could not be found. at org.apache.kafka.common.
Read more >debezium/connect-base - Docker Image
Kafka Connect base image with no predefined connectors. ... then forwards those changes directly into Kafka topics organized by server, database, and table....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@toniiiik ,@edwardpang-computime : try removing the double quotes in the value.
For example, instead of
use
etc …
@ybyzek THX, it works