You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Daniel Kraus <da...@kraus.my> on 2020/09/22 09:50:25 UTC
Trigger topic compaction before uploading to S3
Hi,
I have a KStreams app that outputs a KTable
to a topic with cleanup policy "compact,delete".
I have the Confluent S3 Connector to store this
table in S3 where I do further analysis with hive.
Now my question is, if there's a way to trigger
log compaction right before the S3 Connector
reads the data so I store less data in S3 then
when it simply copies all data from the stream?
Thanks,
Daniel
Re: Trigger topic compaction before uploading to S3
Posted by Ricardo Ferreira <ri...@riferrei.com>.
These properties can't be triggered programatically. Kafka uses an
internal thread pool called "Log Cleaner Thread" that does the job
asynchronously of deleting old segments ("delete") and deleting
repeated records ("compact").
Whatever the S3 connector picks up is already compacted and/or deleted.
— Ricardo
On Tue, 2020-09-22 at 11:50 +0200, Daniel Kraus wrote:
> Hi,
> I have a KStreams app that outputs a KTableto a topic with cleanup
> policy "compact,delete".
> I have the Confluent S3 Connector to store thistable in S3 where I do
> further analysis with hive.
> Now my question is, if there's a way to triggerlog compaction right
> before the S3 Connectorreads the data so I store less data in S3
> thenwhen it simply copies all data from the stream?
> Thanks, Daniel