I build a topo to get messages from by kafka, and then grep some keyword, if fit, write to local file.
I use OpaqueTridentKafkaSpout
of storm-kafka to ensure the tuple will not miss or repeat, but consider one situation: when writing message to local file, and some error occur (for example, not enough space). At this moment, some messages have written to local file, and others not, if the spout resend the message, the message will be write twice.
How to handle that?