<?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: NiFi RouteText Processor - Too Many Open Files in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101493#M14221</link>
    <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/173/agrande.html" nodeid="173"&gt;@Andrew Grande&lt;/A&gt; but after making the adjustments per quickstart on the sandbox/vm it is still producing same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 09:30:23 GMT</pubDate>
    <dc:creator>sunile_manjee</dc:creator>
    <dc:date>2016-01-06T09:30:23Z</dc:date>
    <item>
      <title>NiFi RouteText Processor - Too Many Open Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101491#M14219</link>
      <description>&lt;P&gt;I am running a csv file with approx 300,000 records through routetext processor.  I am getting the following error to many files open:&lt;/P&gt;&lt;P&gt;NiFi App Log:&lt;/P&gt;&lt;P&gt;2016-01-05 23:53:57,540 WARN [Timer-Driven Process Thread-10] o.a.n.c.t.ContinuallyRunProcessorTask
org.apache.nifi.processor.exception.FlowFileAccessException: Exception in callback: java.io.FileNotFoundException: /opt/nifi-1.1.0.0-10/content_repository/100/1452038037470-66660 (Too many open files)
        at org.apache.nifi.controller.repository.StandardProcessSession.append(StandardProcessSession.java:2048) ~[nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.processors.standard.RouteText.appendLine(RouteText.java:499) ~[na:na]
        at org.apache.nifi.processors.standard.RouteText.access$100(RouteText.java:79) ~[na:na]
        at org.apache.nifi.processors.standard.RouteText$1.process(RouteText.java:433) ~[na:na]
        at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1806) ~[nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1777) ~[nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.processors.standard.RouteText.onTrigger(RouteText.java:360) ~[na:na]
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1146) ~[nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:139) [nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:49) [nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:119) [nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_91]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_91]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_91]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_91]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_91]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_91]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_91]
Caused by: java.io.FileNotFoundException: /opt/nifi-1.1.0.0-10/content_repository/100/1452038037470-66660 (Too many open files)
        at java.io.FileOutputStream.open(Native Method) ~[na:1.7.0_91]
        at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:221) ~[na:1.7.0_91]
        at org.apache.nifi.controller.repository.FileSystemRepository.write(FileSystemRepository.java:862) ~[nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.controller.repository.FileSystemRepository.write(FileSystemRepository.java:831) ~[nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        at org.apache.nifi.controller.repository.StandardProcessSession.append(StandardProcessSession.java:2008) ~[nifi-framework-core-1.1.0.0-10.jar:1.1.0.0-10]
        ... 18 common frames omitted&lt;/P&gt;&lt;P&gt;I have run the following&lt;/P&gt;&lt;P&gt;hadoop dfsadmin -report and all is fine&lt;/P&gt;&lt;P&gt;I have checked &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;ulimit -Sn&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;ulimit -Hn&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;which both have 10000 limit.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 07:56:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101491#M14219</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-01-06T07:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi RouteText Processor - Too Many Open Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101492#M14220</link>
      <description>&lt;P&gt;10000 is not an adequate setting. Please update your system config as outlined here &lt;A target="_blank" href="http://nifi.apache.org/quickstart.html"&gt;http://nifi.apache.org/quickstart.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 08:10:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101492#M14220</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2016-01-06T08:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi RouteText Processor - Too Many Open Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101493#M14221</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/173/agrande.html" nodeid="173"&gt;@Andrew Grande&lt;/A&gt; but after making the adjustments per quickstart on the sandbox/vm it is still producing same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 09:30:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101493#M14221</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-01-06T09:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi RouteText Processor - Too Many Open Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101494#M14222</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt;.  As Andrew mentions the &lt;A href="http://nifi.apache.org/quickstart.html"&gt;http://nifi.apache.org/quickstart.html&lt;/A&gt; does outline how to alter the settings to ensure the NiFi process is able to have sufficient open files.  One common gotcha is that the setting is tied to a different user than your NiFi process is executed as and in making sure that the session NiFi starts with does indeed have that new open files setting reflected.  Are you running 'bin/nifi.sh start' in the same terminal that you run 'ulimit -a' to see if the setting has taken effect?&lt;/P&gt;&lt;P&gt;Another good technique you can use is to run 'lsof -p 12345' assuming the pid of NiFi is 12345 and it will show you all the open file handles that NiFi process has.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 10:35:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101494#M14222</guid>
      <dc:creator>JoeWitt</dc:creator>
      <dc:date>2016-01-06T10:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi RouteText Processor - Too Many Open Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101495#M14223</link>
      <description>&lt;P&gt;thank you for the help.  I here are the steps I performed on my sandbox to fix the issue&lt;/P&gt;&lt;P&gt;Added to /etc/security/limits:&lt;/P&gt;&lt;P&gt;*  hard  nofile  50000 &lt;/P&gt;&lt;P&gt;*  soft  nofile  50000&lt;/P&gt;&lt;P&gt;*  hard  nproc  10000 &lt;/P&gt;&lt;P&gt;*  soft  nproc  10000&lt;/P&gt;&lt;P&gt;add to /etc/security/limits.d/90-nproc.conf&lt;/P&gt;&lt;P&gt;*  soft  nproc  10000&lt;/P&gt;&lt;P&gt;Added to /etc/sysctl.conf:
fs.file-max = 50000

Then re-read the sysctl.conf:
/sbin/sysctl -p&lt;/P&gt;&lt;P&gt;Shut down ALL services through ambari&lt;/P&gt;&lt;P&gt;reboot centos&lt;/P&gt;&lt;P&gt;root user -&lt;/P&gt;&lt;P&gt;ulimit -a&lt;/P&gt;&lt;P&gt;And done.  All works.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:35:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101495#M14223</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-01-06T11:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi RouteText Processor - Too Many Open Files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101496#M14224</link>
      <description>&lt;P&gt;Great.  Thanks for providing that follow-up!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 11:29:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-RouteText-Processor-Too-Many-Open-Files/m-p/101496#M14224</guid>
      <dc:creator>JoeWitt</dc:creator>
      <dc:date>2016-01-07T11:29:06Z</dc:date>
    </item>
  </channel>
</rss>

