Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Kafka Connector failed to start #4690

Closed
3 tasks done
Pil0tXia opened this issue Dec 27, 2023 · 0 comments · Fixed by #4691
Closed
3 tasks done

[Bug] Kafka Connector failed to start #4690

Pil0tXia opened this issue Dec 27, 2023 · 0 comments · Fixed by #4691
Labels
bug Something isn't working

Comments

@Pil0tXia
Copy link
Member

Pil0tXia commented Dec 27, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Windows

EventMesh version

master

What happened

Kafka Connector failed to start since #4180.

How to reproduce

run KafkaConnectServer.

It seems to be the problem of org.apache.eventmesh.connector.kafka.sink.config.SourceConnectorConfig#keyConverter.

Debug logs

2023-12-27 15:55:46,176 ERROR [main] Application(Application.java:59) - connector kafkaSource initialize error
org.apache.kafka.common.KafkaException: Failed to construct kafka consumer
	at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:823) ~[kafka-clients-3.0.0.jar:?]
	at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:664) ~[kafka-clients-3.0.0.jar:?]
	at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:645) ~[kafka-clients-3.0.0.jar:?]
	at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:625) ~[kafka-clients-3.0.0.jar:?]
	at org.apache.eventmesh.connector.kafka.source.connector.KafkaSourceConnector.init(KafkaSourceConnector.java:66) ~[classes/:?]
	at org.apache.eventmesh.openconnect.Application.run(Application.java:56) [classes/:?]
	at org.apache.eventmesh.connector.kafka.server.KafkaConnectServer.main(KafkaConnectServer.java:38) [classes/:?]
Caused by: org.apache.kafka.common.KafkaException: class org.apache.kafka.common.serialization.StringSerializer is not an instance of org.apache.kafka.common.serialization.Deserializer
	at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstance(AbstractConfig.java:403) ~[kafka-clients-3.0.0.jar:?]
	at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstance(AbstractConfig.java:434) ~[kafka-clients-3.0.0.jar:?]
	at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstance(AbstractConfig.java:419) ~[kafka-clients-3.0.0.jar:?]
	at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:708) ~[kafka-clients-3.0.0.jar:?]
	... 6 more

image

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@Pil0tXia Pil0tXia added the bug Something isn't working label Dec 27, 2023
mxsm pushed a commit that referenced this issue Dec 28, 2023
* Fix StringDeserializer & (session.timeout.ms)/3 > heartbeat.interval.ms
https://stackoverflow.com/questions/38406298/why-cant-i-increase-session-timeout-ms

* customize timeout config

* add new versions and remove redundant line-breaks

* Increase master version

* Fix an operator log typo

* Revert "Increase master version"

This reverts commit c60b559.

* Revert 'add new versions for issue template'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant