<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NiFI Content Repository archival is not working sometimes in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFI-Content-Repository-archival-is-not-working-sometimes/m-p/195517#M78603</link>
    <description>&lt;P&gt;We have set up the archival process in NiFI with below configuration.&lt;/P&gt;&lt;P&gt;# Content Repository &lt;/P&gt;&lt;P&gt;nifi.content.repository.implementation=org.apache.nifi.controller.repository.FileSystemRepository nifi.content.claim.max.appendable.size=10 MB nifi.content.claim.max.flow.files=100 nifi.content.repository.directory.default=/opt/nifi/data/content_repository nifi.content.repository.archive.max.retention.period=12 hours nifi.content.repository.archive.max.usage.percentage=50% nifi.content.repository.archive.enabled=true nifi.content.repository.always.sync=false nifi.content.viewer.url=/nifi-content-viewer/&lt;/P&gt;&lt;P&gt;Please refer attached screenshot there is nothing in archived directory in content repository.&lt;/P&gt;&lt;P&gt;Dilip&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72952-archival2.png" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18010i13CC81D7FF1715E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72952-archival2.png" alt="72952-archival2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 06:37:47 GMT</pubDate>
    <dc:creator>dilip_namdev</dc:creator>
    <dc:date>2019-08-18T06:37:47Z</dc:date>
    <item>
      <title>NiFI Content Repository archival is not working sometimes</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFI-Content-Repository-archival-is-not-working-sometimes/m-p/195517#M78603</link>
      <description>&lt;P&gt;We have set up the archival process in NiFI with below configuration.&lt;/P&gt;&lt;P&gt;# Content Repository &lt;/P&gt;&lt;P&gt;nifi.content.repository.implementation=org.apache.nifi.controller.repository.FileSystemRepository nifi.content.claim.max.appendable.size=10 MB nifi.content.claim.max.flow.files=100 nifi.content.repository.directory.default=/opt/nifi/data/content_repository nifi.content.repository.archive.max.retention.period=12 hours nifi.content.repository.archive.max.usage.percentage=50% nifi.content.repository.archive.enabled=true nifi.content.repository.always.sync=false nifi.content.viewer.url=/nifi-content-viewer/&lt;/P&gt;&lt;P&gt;Please refer attached screenshot there is nothing in archived directory in content repository.&lt;/P&gt;&lt;P&gt;Dilip&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72952-archival2.png" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18010i13CC81D7FF1715E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72952-archival2.png" alt="72952-archival2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:37:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFI-Content-Repository-archival-is-not-working-sometimes/m-p/195517#M78603</guid>
      <dc:creator>dilip_namdev</dc:creator>
      <dc:date>2019-08-18T06:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: NiFI Content Repository archival is not working sometimes</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFI-Content-Repository-archival-is-not-working-sometimes/m-p/195518#M78604</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78499/dilipnamdev.html" nodeid="78499"&gt;@Dilip Namdev&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;The fact that every "archive" sub-directory is empty leads me to believe that archive is in fact working correctly.  NiFi stores FlowFile content in claims within the content repository. One claim may contain 1 to many Flowfiles.  All it takes is one FlowFile to still be active in one of your dataflows (queued in some NiFi connection) to hold up an entire content claim.  A content claim cannot be moved to archive unless all active flowfiles referencing that claim are complete (meaning reached a point of termination in your dataflow).&lt;BR /&gt;-&lt;BR /&gt;The following article explains this in more detail:&lt;BR /&gt;&lt;A href="https://community.hortonworks.com/articles/82308/understanding-how-nifis-content-repository-archivi.html" target="_blank"&gt;https://community.hortonworks.com/articles/82308/understanding-how-nifis-content-repository-archivi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Aside from the above, NiFi opens a lot of file handles.  Having insufficient file handles can cause issues with creation of new files.  This may affect proper cleanup of both the flowfile and content repositories.  I suggest making sure the user that owns your NiFi process has a high number of open file handles available to it.&lt;BR /&gt;-&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;BR /&gt;-&lt;/P&gt;&lt;P&gt;If you found this answer addressed your question, please take moment to login and click "&lt;STRONG&gt;accept&lt;/STRONG&gt;" below the answer&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 23:02:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFI-Content-Repository-archival-is-not-working-sometimes/m-p/195518#M78604</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-05-22T23:02:29Z</dc:date>
    </item>
  </channel>
</rss>

