I tried using this code to enable compression in the source connector. It is not working. Also my cluster is enabled with auto.create.topics.enable = true.
When I tested with 10000 records from the table. Size of the topic with compression and without compression is same. On describing the topic in cluster. Compression Type is not showing.
Just because auto.create.topics.enable=true doesn’t mean that the topic might not already exist, e.g. from a previous test.
Can you try the test again, and show the output here of topic list beforehand, Kafka Connect config used, and then config properties list afterwards of the created topic?
Hi Sir, I could see the topic has been created automatically using the topic_prefix_name with the table name after that. But for 10K records it has occupied 10MB without any compression enabled in the source connector. After i added below lines to the source code to enable compression, still for the same 10K records it has occupied 10MB.
Yes i have checked this. Compression is not applied while describing the Topic even when i used the above “topic.creation.default.compression.type” : “snappy” in the source connector.