Open smyrgeorge opened 1 year ago
I want to ask you how did you manage to use the transformer without getting the following error:
java.lang.ClassCastException: class org.apache.kafka.connect.sink.SinkRecord cannot be cast to class org.apache.kafka.connect.source.SourceRecord (org.apache.kafka.connect.sink.SinkRecord and org.apache.kafka.connect.source.So │
│ urceRecord are in unnamed module of loader 'app') │
│ at com.birdie.kafka.connect.smt.DebeziumJsonDeserializer.apply(DebeziumJsonDeserializer.java:26) │
│ at org.apache.kafka.connect.runtime.TransformationStage.apply(TransformationStage.java:57) │
│ at org.apache.kafka.connect.runtime.TransformationChain.lambda$apply$0(TransformationChain.java:54) │
│ at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndRetry(RetryWithToleranceOperator.java:180) │
│ at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndHandleError(RetryWithToleranceOperator.java:214) │
│ ... 15 more
because I am getting this error currently
I don't remember actually. Although I managed to create me own converters.
If you want just take a look here:
Hola!
I'm playing around with Debezium + PostgreSQL and I'm trying to use the
DebeziumJsonDeserializer
.I managed to load the plugin correctly, I saw it in the logs when Kafka connect is starting up.
Also managed to load the connector, using the following config.
From the logs:
I have a table with the following values (one of the rows).
The message produced for this row is like:
As we can see the
test
field is still encoded as a string:Am I missing something? I'm using the latest images (2.4) provided by the debezium team. https://quay.io/organization/debezium
Thanks in advance!