Hi Manish,
This is expected behavior of the spooling directory source:
https://flume.apache.org/FlumeUserGuide.html#spooling-directory-source
You will need to have the files flushed/completed elsewhere, and moved into
the spooling directory with a unique name.
--
Iain Wright
This email message
How to deal with this issue in production.
If a file is written to after being placed into the spooling directory,
Flume will print an error to its log file and stop processing
If a file name is reused at a later time, Flume will print an error to its
log file and stop processing.
Please help.