For the twitter source, it creates a 30-bit header for each kafka message if we use a custom kafka consumer other than @StreamListener(Sink).
@StreamListenercorrectly sends messages to the annotated method (no header). The problem is that for each source, the size of the header changes. So, how can I dynamically understand the size of the message header, since I am using the kafka user consumer.? Or How to remove the header for each message.?
UPDATE: -
The following is the message received kafka-console-consumerwhen using a TCP source.
contentType"application/octet-stream"hello world
I just need to get a message. In this case, hello world
source
share