<?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 Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340838#M233386</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;, can you please help us on this , looks like this is common with Nifi 1.15.3 version which happens to be the latest one&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 09:43:03 GMT</pubDate>
    <dc:creator>Neil_1992</dc:creator>
    <dc:date>2022-04-07T09:43:03Z</dc:date>
    <item>
      <title>Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340666#M233362</link>
      <description>&lt;P&gt;Nifi provenance data is not visible and remains at 80% in searching for provenance events after upgrading from 1.13.0 to 1.15.3&lt;/P&gt;
&lt;P&gt;Below are the error logs :&lt;/P&gt;
&lt;P&gt;2022-04-05 23:51:22,905 ERROR [Index Provenance Events-2] o.a.n.p.index.lucene.EventIndexTask Failed to index Provenance Events&lt;BR /&gt;org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed&lt;BR /&gt;at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:877)&lt;BR /&gt;at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:891)&lt;BR /&gt;at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1468)&lt;BR /&gt;at org.apache.lucene.index.IndexWriter.addDocuments(IndexWriter.java:1444)&lt;BR /&gt;at org.apache.nifi.provenance.lucene.LuceneEventIndexWriter.index(LuceneEventIndexWriter.java:70)&lt;BR /&gt;at org.apache.nifi.provenance.index.lucene.EventIndexTask.index(EventIndexTask.java:202)&lt;BR /&gt;at org.apache.nifi.provenance.index.lucene.EventIndexTask.run(EventIndexTask.java:113)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: java.nio.file.FileSystemException: /provenance_repo/provenance_repository/lucene-8-index-1647749380623/_vd_Lucene80_0.dvd: Too many open files&lt;BR /&gt;at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)&lt;BR /&gt;at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)&lt;BR /&gt;at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)&lt;BR /&gt;at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)&lt;BR /&gt;at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)&lt;BR /&gt;at java.nio.file.Files.newOutputStream(Files.java:216)&lt;BR /&gt;at org.apache.lucene.store.FSDirectory$FSIndexOutput.&amp;lt;init&amp;gt;(FSDirectory.java:410)&lt;BR /&gt;at org.apache.lucene.store.FSDirectory$FSIndexOutput.&amp;lt;init&amp;gt;(FSDirectory.java:406)&lt;BR /&gt;at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:254)&lt;BR /&gt;at org.apache.lucene.store.LockValidatingDirectoryWrapper.createOutput(LockValidatingDirectoryWrapper.java:44)&lt;BR /&gt;at org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(TrackingDirectoryWrapper.java:43)&lt;BR /&gt;at org.apache.lucene.codecs.lucene80.Lucene80DocValuesConsumer.&amp;lt;init&amp;gt;(Lucene80DocValuesConsumer.java:79)&lt;BR /&gt;at org.apache.lucene.codecs.lucene80.Lucene80DocValuesFormat.fieldsConsumer(Lucene80DocValuesFormat.java:161)&lt;BR /&gt;at org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat$FieldsWriter.getInstance(PerFieldDocValuesFormat.java:227)&lt;BR /&gt;at org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat$FieldsWriter.getInstance(PerFieldDocValuesFormat.java:163)&lt;BR /&gt;at org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat$FieldsWriter.addNumericField(PerFieldDocValuesFormat.java:109)&lt;BR /&gt;at org.apache.lucene.index.NumericDocValuesWriter.flush(NumericDocValuesWriter.java:108)&lt;BR /&gt;at org.apache.lucene.index.DefaultIndexingChain.writeDocValues(DefaultIndexingChain.java:345)&lt;BR /&gt;at org.apache.lucene.index.DefaultIndexingChain.flush(DefaultIndexingChain.java:225)&lt;BR /&gt;at org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:350)&lt;BR /&gt;at org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:476)&lt;BR /&gt;at org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:656)&lt;BR /&gt;at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3365)&lt;BR /&gt;at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3771)&lt;BR /&gt;at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3729)&lt;BR /&gt;at org.apache.nifi.provenance.lucene.LuceneEventIndexWriter.commit(LuceneEventIndexWriter.java:101)&lt;BR /&gt;at org.apache.nifi.provenance.index.lucene.EventIndexTask.commit(EventIndexTask.java:253)&lt;BR /&gt;at org.apache.nifi.provenance.index.lucene.EventIndexTask.index(EventIndexTask.java:232)&lt;BR /&gt;... 6 common frames omitted&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neil_1992_0-1649222787472.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34134i5C3ABD9B69E06CD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neil_1992_0-1649222787472.png" alt="Neil_1992_0-1649222787472.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neil_1992_1-1649222831328.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34135i67847DA58C2B9906/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neil_1992_1-1649222831328.png" alt="Neil_1992_1-1649222831328.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Please help on this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 06:31:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340666#M233362</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-06T06:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340837#M233385</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93844"&gt;@Neil_1992&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got the same error after upgrade from 1.11.4 to 1.15.3&lt;/P&gt;&lt;P&gt;For this moment, I don't have any information about this error.&lt;/P&gt;&lt;P&gt;Hope to found it one day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:38:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340837#M233385</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2022-04-07T09:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340838#M233386</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;, can you please help us on this , looks like this is common with Nifi 1.15.3 version which happens to be the latest one&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:43:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340838#M233386</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-07T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340950#M233407</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93844"&gt;@Neil_1992&lt;/a&gt; &amp;amp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/48614"&gt;@maykiwogno&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While we wait for our Nifi Guru&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;review, Wish to provide a bit of information on the Lucene Exception.&amp;nbsp; It appears Nifi Provenance Repository uses Lucene for indexing &amp;amp; the&amp;nbsp;&lt;SPAN&gt;AlreadyClosedException means the Lucene Core being accessed has been Closed already, owing to&amp;nbsp;FileSystemException with "Too Many Open Files" for the one of the Core Content "/provenance_repo/provenance_repository/lucene-8-index-1647749380623/_vd_Lucene80_0.dvd".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once&amp;nbsp;AlreadyClosedException is reported, Restarting the Lucene Service would ensure the Cores are initialized afresh. Wish to check if your Team have attempted to increase the OpenFileLimit of the User running the Nifi Process to manage the&amp;nbsp;FileSystemException with "Too Many Open Files" &amp;amp; restart Nifi, which I assume would restart the Lucene Cores as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that the above answer is provided from Lucene perspective as I am not a Nifi Expert. My only intention to get your team unblocked, if the issue is preventing any Nifi concerns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards, Smarak&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:33:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/340950#M233407</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2022-04-08T07:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341607#M233561</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93844"&gt;@Neil_1992&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I agree that the first step here is to increase the open file limit for the user that owns your NiFi process.&lt;BR /&gt;check your current ulimit by becoming the user the user that owns your NiFi process and executing the "ulimit -a" command.&lt;BR /&gt;&lt;BR /&gt;You can also inspect the /etc/security/limits.comf file.&lt;BR /&gt;&lt;BR /&gt;NiFi can open a very large number of open files. The more FlowFile load, the larger the dataflows, the more concurrent tasks, etc all contribute to open file handles.&lt;BR /&gt;&lt;BR /&gt;I recommend setting the ulimit to a very large value like 999999, restarting NiFi and seeing if your issue persists.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 12:54:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341607#M233561</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-04-18T12:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341608#M233562</link>
      <description>&lt;P&gt;Adding below to&amp;nbsp;/etc/security/limits.conf and Restart the nodes twice with adding nodes one after another syncing with primary resolved the Issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;* hard nofile 500000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;* soft nofile 500000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;root hard nofile 500000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;root soft nofile 500000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;nifi hard nofile 500000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;nifi soft nofile 500000&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 13:10:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341608#M233562</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-18T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341609#M233563</link>
      <description>&lt;P&gt;Thanks for your valuable inputs&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 13:13:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341609#M233563</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-18T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341651#M233576</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have opened a issue here :&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/NIFI-9572" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-9572&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've checked and rechecked the number of open files and it is never up than +10000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already thought to increase the number of open files in the /etc/security/limit.d/90-nifi.conf&amp;nbsp;&lt;BR /&gt;but there are two things&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why are we got this limit but not in with nifi 1.11.4&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;And the number 999999 is done by experience or it is high limit ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 07:13:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341651#M233576</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2022-04-19T07:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341652#M233577</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my experience, when we restart the nifi, the message disaspeared for one or two days and come back again.&lt;/P&gt;&lt;P&gt;Let check in one week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 07:15:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341652#M233577</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2022-04-19T07:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341653#M233578</link>
      <description>&lt;P&gt;I have found the root cause to be some of the nars of 1.15.3 version , When i removed those and replaced with same nars from 1.13.0 , the issue did not appear , below is the list of nars i removed later replaced with 1.13.0 version&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sudo mv /apps/nifi-1.15.3/lib/nifi-distributed-cache-services-nar-1.15.3.nar /apps&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;sudo mv /apps/nifi-1.15.3/lib/nifi-hadoop-nar-1.15.3.nar /apps/&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;sudo mv /apps/nifi-1.15.3/lib/nifi-standard-nar-1.15.3.nar /apps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sudo mv /apps/nifi-1.15.3/lib/nifi-scripting-nar-1.15.3.nar /apps/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 07:23:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341653#M233578</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-19T07:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341659#M233580</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93844"&gt;@Neil_1992&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why have you replace only these 4 nars ?&lt;/P&gt;&lt;P&gt;Have you got some logs ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 07:46:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341659#M233580</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2022-04-19T07:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341662#M233583</link>
      <description>&lt;P&gt;I saw the issues were originating processors related to those nars , i back tracked the processor ids from the logs&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Caused by: java.lang.IllegalStateException: failed to create a child event loop&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.util.concurrent.MultithreadEventExecutorGroup.&amp;lt;init&amp;gt;(MultithreadEventExecutorGroup.java:88)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.util.concurrent.MultithreadEventExecutorGroup.&amp;lt;init&amp;gt;(MultithreadEventExecutorGroup.java:58)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.util.concurrent.MultithreadEventExecutorGroup.&amp;lt;init&amp;gt;(MultithreadEventExecutorGroup.java:47)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.MultithreadEventLoopGroup.&amp;lt;init&amp;gt;(MultithreadEventLoopGroup.java:59)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoopGroup.&amp;lt;init&amp;gt;(NioEventLoopGroup.java:77)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoopGroup.&amp;lt;init&amp;gt;(NioEventLoopGroup.java:72)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoopGroup.&amp;lt;init&amp;gt;(NioEventLoopGroup.java:59)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;... 126 common frames omitted&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Caused by: org.python.netty.channel.ChannelException: failed to open a new selector&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:175)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoop.&amp;lt;init&amp;gt;(NioEventLoop.java:149)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:127)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:36)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.util.concurrent.MultithreadEventExecutorGroup.&amp;lt;init&amp;gt;(MultithreadEventExecutorGroup.java:84)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;... 137 common frames omitted&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Caused by: java.io.IOException: Too many open files&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at sun.nio.ch.EPollArrayWrapper.&amp;lt;init&amp;gt;(EPollArrayWrapper.java:130)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at sun.nio.ch.EPollSelectorImpl.&amp;lt;init&amp;gt;(EPollSelectorImpl.java:69)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;at org.python.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:173)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;... 141 common frames omitted&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 08:21:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341662#M233583</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-19T08:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341667#M233586</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93844"&gt;@Neil_1992&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you post the original error in attachment and where I saw the nars issues. I'm trying to find if i got the same issue.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 09:34:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341667#M233586</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2022-04-19T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341814#M233615</link>
      <description>&lt;P&gt;You are right&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/48614"&gt;@maykiwogno&lt;/a&gt;&amp;nbsp;, the issue was resolved in one cluster but coming again in another cluster again and again , PFB logs for that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,600 ERROR [Timer-Driven Process Thread-22] o.a.n.p.WriteAheadProvenanceRepository Failed to write events to the Event Store&lt;BR /&gt;java.io.FileNotFoundException: /provenance_repo/provenance_repository/toc/5392629.toc (Too many open files)&lt;BR /&gt;at java.io.FileOutputStream.open0(Native Method)&lt;BR /&gt;at java.io.FileOutputStream.open(FileOutputStream.java:270)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:162)&lt;BR /&gt;at org.apache.nifi.provenance.toc.StandardTocWriter.&amp;lt;init&amp;gt;(StandardTocWriter.java:63)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.lambda$initialize$0(WriteAheadProvenanceRepository.java:125)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.tryRollover(WriteAheadStorePartition.java:273)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.addEvents(WriteAheadStorePartition.java:190)&lt;BR /&gt;at org.apache.nifi.provenance.store.PartitionedEventStore.addEvents(PartitionedEventStore.java:104)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.registerEvents(WriteAheadProvenanceRepository.java:186)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.updateProvenanceRepo(StandardProcessSession.java:871)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:443)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:414)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commitAsync(StandardProcessSession.java:367)&lt;BR /&gt;at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:28)&lt;BR /&gt;at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1273)&lt;BR /&gt;at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)&lt;BR /&gt;at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:103)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,600 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,600 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,600 ERROR [Timer-Driven Process Thread-22] o.a.n.p.WriteAheadProvenanceRepository Failed to write events to the Event Store&lt;BR /&gt;java.io.FileNotFoundException: /provenance_repo/provenance_repository/toc/5392629.toc (Too many open files)&lt;BR /&gt;at java.io.FileOutputStream.open0(Native Method)&lt;BR /&gt;at java.io.FileOutputStream.open(FileOutputStream.java:270)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:162)&lt;BR /&gt;at org.apache.nifi.provenance.toc.StandardTocWriter.&amp;lt;init&amp;gt;(StandardTocWriter.java:63)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.lambda$initialize$0(WriteAheadProvenanceRepository.java:125)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.tryRollover(WriteAheadStorePartition.java:273)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.addEvents(WriteAheadStorePartition.java:190)&lt;BR /&gt;at org.apache.nifi.provenance.store.PartitionedEventStore.addEvents(PartitionedEventStore.java:104)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.registerEvents(WriteAheadProvenanceRepository.java:186)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.updateProvenanceRepo(StandardProcessSession.java:871)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:443)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:414)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commitAsync(StandardProcessSession.java:367)&lt;BR /&gt;at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:28)&lt;BR /&gt;at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1273)&lt;BR /&gt;at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)&lt;BR /&gt;at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:103)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 ERROR [Timer-Driven Process Thread-22] o.a.n.p.WriteAheadProvenanceRepository Failed to write events to the Event Store&lt;BR /&gt;java.io.FileNotFoundException: /provenance_repo/provenance_repository/toc/5392629.toc (Too many open files)&lt;BR /&gt;at java.io.FileOutputStream.open0(Native Method)&lt;BR /&gt;at java.io.FileOutputStream.open(FileOutputStream.java:270)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:162)&lt;BR /&gt;at org.apache.nifi.provenance.toc.StandardTocWriter.&amp;lt;init&amp;gt;(StandardTocWriter.java:63)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.lambda$initialize$0(WriteAheadProvenanceRepository.java:125)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.tryRollover(WriteAheadStorePartition.java:273)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.addEvents(WriteAheadStorePartition.java:190)&lt;BR /&gt;at org.apache.nifi.provenance.store.PartitionedEventStore.addEvents(PartitionedEventStore.java:104)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.registerEvents(WriteAheadProvenanceRepository.java:186)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.updateProvenanceRepo(StandardProcessSession.java:871)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:443)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:414)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commitAsync(StandardProcessSession.java:367)&lt;BR /&gt;at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:28)&lt;BR /&gt;at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1273)&lt;BR /&gt;at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)&lt;BR /&gt;at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:103)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 ERROR [Timer-Driven Process Thread-22] o.a.n.p.WriteAheadProvenanceRepository Failed to write events to the Event Store&lt;BR /&gt;java.io.FileNotFoundException: /provenance_repo/provenance_repository/toc/5392629.toc (Too many open files)&lt;BR /&gt;at java.io.FileOutputStream.open0(Native Method)&lt;BR /&gt;at java.io.FileOutputStream.open(FileOutputStream.java:270)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:162)&lt;BR /&gt;at org.apache.nifi.provenance.toc.StandardTocWriter.&amp;lt;init&amp;gt;(StandardTocWriter.java:63)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.lambda$initialize$0(WriteAheadProvenanceRepository.java:125)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.tryRollover(WriteAheadStorePartition.java:273)&lt;BR /&gt;at org.apache.nifi.provenance.store.WriteAheadStorePartition.addEvents(WriteAheadStorePartition.java:190)&lt;BR /&gt;at org.apache.nifi.provenance.store.PartitionedEventStore.addEvents(PartitionedEventStore.java:104)&lt;BR /&gt;at org.apache.nifi.provenance.WriteAheadProvenanceRepository.registerEvents(WriteAheadProvenanceRepository.java:186)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.updateProvenanceRepo(StandardProcessSession.java:871)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:443)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commit(StandardProcessSession.java:414)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.commitAsync(StandardProcessSession.java:367)&lt;BR /&gt;at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:28)&lt;BR /&gt;at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1273)&lt;BR /&gt;at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)&lt;BR /&gt;at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:103)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2022-04-20 05:22:19,601 WARN [Cluster Socket Listener] org.apache.nifi.io.socket.SocketListener Failed to communicate with Unknown Host due to java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;java.net.SocketException: Too many open files (Accept failed)&lt;BR /&gt;at java.net.PlainSocketImpl.socketAccept(Native Method)&lt;BR /&gt;at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)&lt;BR /&gt;at java.net.ServerSocket.implAccept(ServerSocket.java:545)&lt;BR /&gt;at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:348)&lt;BR /&gt;at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:107)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:08:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/341814#M233615</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-20T13:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/342317#M233711</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we need to increase open file limit for nifi as a service not user , so add the below line in your&lt;/P&gt;&lt;P&gt;nifi.service file and restart the server , it should resolve this issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LimitNOFILE=999999&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 06:05:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/342317#M233711</guid>
      <dc:creator>Neil_1992</dc:creator>
      <dc:date>2022-04-26T06:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to index Provenance Events org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed  || Caused by: java.nio.file.FileSystemException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/371709#M241063</link>
      <description>&lt;P&gt;Sorry &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93844"&gt;@Neil_1992&lt;/a&gt;&amp;nbsp;where could I find nifi.service file, to add this property ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 12:04:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-index-Provenance-Events-org-apache-lucene-store/m-p/371709#M241063</guid>
      <dc:creator>Scorpy257</dc:creator>
      <dc:date>2023-05-30T12:04:16Z</dc:date>
    </item>
  </channel>
</rss>

