You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a project that will received the CDC messages from Cassandra Cluster to Pulsar then perform some aggregation with time-window function.
The Java function will received the KeyValue type with key and value are AVRO following the latest schema from the Data-topic. **(The latest schema generated by --st auto_consume option)
However, my function is not working, after review the function log, the problem is the function-consumer is received the messages in bytes format and incompatible with the existing schema.
2024-03-05T12:53:18,038+0000 [public/default/demo_sumbyId-0] ERROR org.apache.pulsar.functions.instance.JavaInstanceRunnable - [public/default/demo_sumbyId:0] Uncaught exception in Java Instance java.util.concurrent.CompletionException: org.apache.pulsar.client.api.PulsarClientException$IncompatibleSchemaException: {"errorMsg":"Key schemas or Value schemas are different schema type, from key schema type is AVRO and to key schema is BYTES, from value schema is AVRO and to value schema is BYTES","reqId":1870435977707154767, "remote":"Censored", "local":"Censored"}
In Client-CLI, I cannot receive the structure messages without the --st auto_consume even after the schema is registered.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Environment
Problem Statement
I want to create a project that will received the CDC messages from Cassandra Cluster to Pulsar then perform some aggregation with time-window function.
[CDC Agent] --> [Events-topic] --> [Source Connector] --> [Data-topic] --> **[Function]** --> [Output-topic]The Java function will received the KeyValue type with key and value are AVRO following the latest schema from the
Data-topic. **(The latest schema generated by--st auto_consumeoption)However, my function is not working, after review the function log, the problem is the function-consumer is received the messages in bytes format and incompatible with the existing schema.
In Client-CLI, I cannot receive the structure messages without the --st auto_consume even after the schema is registered.
with --st auto_consume:without --st auto_consume:Could you help identify the problem or what I missing please?
All reactions