You can configure that in the Configs by setting log retention : http://kafka.apache.org/07/configuration.html
Thanks, Mayuresh Sent from my iPhone > On Jul 24, 2015, at 12:49 PM, Yuheng Du <yuheng.du.h...@gmail.com> wrote: > > Hi, > > I am testing the kafka producer performance. So I created a queue and > writes a large amount of data to that queue. > > Is there a way to delete the data automatically after some time, say > whenever the data size reaches 50GB or the retention time exceeds 10 > seconds, it will be deleted so my disk won't get filled and new data can't > be written in? > > Thanks.!