Support Questions

Find answers, ask questions, and share your expertise

NiFi 1.16.0 doesnt seems to clean up it content repo folder

avatar
New Contributor

Hi Community,

 

We have disabled the content repository archival by setting following parameters in nifi.properties file.

 

# Content Repository
nifi.content.repository.implementation=org.apache.nifi.controller.repository.FileSystemRepository
nifi.content.claim.max.appendable.size=50 MB
nifi.content.repository.directory.default=./content_repository
nifi.content.repository.archive.max.retention.period=15 min
nifi.content.repository.archive.max.usage.percentage=50%
nifi.content.repository.archive.enabled=false
nifi.content.repository.always.sync=false
nifi.content.viewer.url=../nifi-content-viewer/

 

But still the size of content repository is increasing as it processes more flow files and occupying all the disk space.

 

Is there any parameter which we can set to clean up the content repository automatically instead of deleting its contents manually and then restarting NIFI.

 

Looking forward for your help!!

1 REPLY 1

avatar
Super Guru

@Rgupta7 ,

 

Check your flows for flowfiles stuck in queues (.e.g. maybe you have connections to stopped processors or dead-end funnels and messages stay there indefinitely).

 

Flowfiles are physically stored in bigger files that contain many flowfiles. If even one of those flowfiles are referenced by any queues, those files are never removed from disk.

 

Cheers,

André

 

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.