The "Maximum File Count" controls how many files are allowed in the destination directory that PutFile is writing to. So if you set it to 10 and then 100 flow files come in to PutFile, it will write 10 files to the directory and transfer 90 of them to the failure relationship.
The properties on PutFile have nothing to do with how the data is being fetched from MongoDB. On Tue, Jan 10, 2017 at 7:42 AM, <[email protected]> wrote: > Hi, > > We are using Nifi for getting the data from mongoDB and store them in LFS. > Actually we trying to explore more features of Nifi. > > While storing the data in LFS, Nifi is generating one file each for > document. If i am not specifying Max file count property in PutFile > processor it is generating same files continuously, i.e if i have 10 > documents it is creating the same documents again and again. > > If i specify any value for the Max File count say 10 then it will only > fetch only 10 documents it will ignore the rest. > > I want to understand how to limit the file count to number of documents in > mongoDB collection and increase the number of documents as data grow >
