So the file name in hdfs is (for the collector sink example given earlier):

The following makes sense:

But what comes after it (-160450707-0600.604742529713813.00000021) does not make sense? Also if one file is divided into multiple files in hdfs, how do I know the chronology (ie what comes first - what is the header, what is the end of that file?)


From: Zijad Purkovic <>
To:; Gaurav Khanna <>
Sent: Thursday, January 19, 2012 1:54 PM
Subject: Re: Collector Sink writing to HDFS

If youre using default flume-site.xml, it will open a new file every
30 seconds for writing to HDFS. So if your file takes longer than that
to read, send to collector, acknowledge and write to HDFS youre gonna
end up with more that one file on HDFS.

On Thu, Jan 19, 2012 at 10:08 PM, Gaurav Khanna <> wrote:
> Hi,
> A newbie question - perhaps it has already been answered and so apologize in
> advance in that case.
> collectorSink("/tmp/bb/%H00/", "%{host}-")
> Used the above collector sink to read one file (around 78 M) and it wrote 4
> files into the /tmp/bb folder. I was wondering why that was done by the
> collector sink and what is the rationale behind that?
> Thanks
> Gaurav
> Gaurav Khanna

Zijad Purković