I am trying to run the connector but its failing. I tried other connector with same docker-compose file and its working.
Error
kafka-connect-poc-connect-1 | [2024-04-30 06:56:08,725] INFO Added aliases 'PrincipalConnectorClientConfigOverridePolicy' and 'Principal' to plugin 'org.apache.kafka.connect.connector.policy.PrincipalConnectorClientConfigOverridePolicy' (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader) kafka-connect-poc-connect-1 | [2024-04-30 06:56:08,734] ERROR Stopping due to error (org.apache.kafka.connect.cli.ConnectDistributed) kafka-connect-poc-connect-1 | java.lang.NoSuchFieldError: DEFAULT kafka-connect-poc-connect-1 | at org.apache.kafka.connect.runtime.WorkerConfig.baseConfigDef(WorkerConfig.java:258) kafka-connect-poc-connect-1 | at org.apache.kafka.connect.runtime.distributed.DistributedConfig.<clinit>(DistributedConfig.java:181) kafka-connect-poc-connect-1 | at org.apache.kafka.connect.cli.ConnectDistributed.startConnect(ConnectDistributed.java:95) kafka-connect-poc-connect-1 | at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:80) kafka-connect-poc-control-center-1
I am trying to run the connector but its failing. I tried other connector with same docker-compose file and its working. Error
kafka-connect-poc-connect-1 | [2024-04-30 06:56:08,725] INFO Added aliases 'PrincipalConnectorClientConfigOverridePolicy' and 'Principal' to plugin 'org.apache.kafka.connect.connector.policy.PrincipalConnectorClientConfigOverridePolicy' (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader) kafka-connect-poc-connect-1 | [2024-04-30 06:56:08,734] ERROR Stopping due to error (org.apache.kafka.connect.cli.ConnectDistributed) kafka-connect-poc-connect-1 | java.lang.NoSuchFieldError: DEFAULT kafka-connect-poc-connect-1 | at org.apache.kafka.connect.runtime.WorkerConfig.baseConfigDef(WorkerConfig.java:258) kafka-connect-poc-connect-1 | at org.apache.kafka.connect.runtime.distributed.DistributedConfig.<clinit>(DistributedConfig.java:181) kafka-connect-poc-connect-1 | at org.apache.kafka.connect.cli.ConnectDistributed.startConnect(ConnectDistributed.java:95) kafka-connect-poc-connect-1 | at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:80) kafka-connect-poc-control-center-1
My docker-compose file
`version: '2.1'
services:
elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.23 ports:
"ES_JAVA_OPTS=-Xms512m -Xmx512m"
zookeeper: image: zookeeper:3.4.9 restart: unless-stopped hostname: zookeeper ports:
"2181:2181" environment: ZOO_PORT: 2181 ZOO_SERVERS: server.1=zookeeper:2888:3888
kafka: image: confluentinc/cp-enterprise-kafka:5.5.12 hostname: kafka ports:
zookeeper
schema-registry: image: confluentinc/cp-schema-registry:5.5.12 hostname: schema-registry ports:
kafka
connect: image: confluentinc/cp-kafka-connect:5.5.12 hostname: connect ports:
kafka
`
anyone help me to fix this