FileSplitter would create FileMetaData for zero length file. But, there will not be any BlockMetaData for zero length file.
On the receiving side, you can check for if condition based on fileMetadata.getNumberOfBlocks(). For example you can refer this: https://github.com/apache/apex-malhar/blob/763d14fca6b84fdda1b6853235e5d4b71ca87fca/library/src/main/java/com/datatorrent/lib/io/fs/Synchronizer.java#L127 ~ Yogi On 3 October 2016 at 12:46, chiranjeevi vasupilli <[email protected]> wrote: > Hi team, > > I would like to know How FileSplitter will handle read Zero Byte files . > > > -- > ur's > chiru >
