<?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 Too many open files in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Too-many-open-files/m-p/93078#M1914</link>
    <description>&lt;P&gt;Often when provisioning clusters nodes will be cancelled due to Cloudera Director not being able to open more file handles:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[2019-07-23 17:31:18.585 +0000] ERROR [p-ebcce1c842e9-BackupClouderaManagerConfig] - - - com.cloudera.launchpad.pipeline.ssh.SshJobFailFastWithOutputLogging - com.cloudera.launchpad.pipeline.util.PipelineRunner: Attempt to execute job failed
java.net.SocketException: Too many open files
        at java.net.Socket.createImpl(Socket.java:460)
        at java.net.Socket.connect(Socket.java:587)
        at net.schmizz.sshj.SocketClient.connect(SocketClient.java:126)
        at com.cloudera.launchpad.sshj.SshJClient.attemptConnection(SshJClient.java:343)
        at com.cloudera.launchpad.sshj.SshJClient.attemptConnection(SshJClient.java:318)
        at com.cloudera.launchpad.sshj.SshJClient.access$000(SshJClient.java:68)&lt;/PRE&gt;
&lt;P&gt;How to increase the file handles as ulimit and limits.conf do not seem to work?&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 18:54:03 GMT</pubDate>
    <dc:creator>Da</dc:creator>
    <dc:date>2022-09-19T18:54:03Z</dc:date>
    <item>
      <title>Too many open files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Too-many-open-files/m-p/93078#M1914</link>
      <description>&lt;P&gt;Often when provisioning clusters nodes will be cancelled due to Cloudera Director not being able to open more file handles:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[2019-07-23 17:31:18.585 +0000] ERROR [p-ebcce1c842e9-BackupClouderaManagerConfig] - - - com.cloudera.launchpad.pipeline.ssh.SshJobFailFastWithOutputLogging - com.cloudera.launchpad.pipeline.util.PipelineRunner: Attempt to execute job failed
java.net.SocketException: Too many open files
        at java.net.Socket.createImpl(Socket.java:460)
        at java.net.Socket.connect(Socket.java:587)
        at net.schmizz.sshj.SocketClient.connect(SocketClient.java:126)
        at com.cloudera.launchpad.sshj.SshJClient.attemptConnection(SshJClient.java:343)
        at com.cloudera.launchpad.sshj.SshJClient.attemptConnection(SshJClient.java:318)
        at com.cloudera.launchpad.sshj.SshJClient.access$000(SshJClient.java:68)&lt;/PRE&gt;
&lt;P&gt;How to increase the file handles as ulimit and limits.conf do not seem to work?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 18:54:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Too-many-open-files/m-p/93078#M1914</guid>
      <dc:creator>Da</dc:creator>
      <dc:date>2022-09-19T18:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Too many open files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Too-many-open-files/m-p/93079#M1915</link>
      <description>&lt;P&gt;This is because the limit file (/proc/&amp;lt;director_pid&amp;gt;/limit) of the process has a "Max open files" of 1024 which is to low for most operations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A solution for this since it uses systemd on RHEL/CentOS 7 is to do the following:&lt;/P&gt;&lt;PRE&gt;# make a folder for custom systemd changes for this service&lt;BR /&gt;mkdir -p /etc/systemd/system/cloudera-director-server.service.d/
&lt;BR /&gt;# make an override conf file so that a Director upgrade will not break the changes&lt;BR /&gt;vim /etc/systemd/system/cloudera-director-server.service.d/override.conf

# then add the following in that file and save/quit it
[Service]
LimitNOFILE=65536&lt;BR /&gt;&lt;BR /&gt;# next reload the daemon&lt;BR /&gt;systemctl daemon-reload&lt;BR /&gt;&lt;BR /&gt;# finally restart Director&lt;BR /&gt;systemctl restart cloudera-director-server&lt;/PRE&gt;&lt;P&gt;Then if you check the limit file in the new process you will see it show 65536 as the "Max open files".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this can help someone in the future. Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 17:42:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Too-many-open-files/m-p/93079#M1915</guid>
      <dc:creator>Da</dc:creator>
      <dc:date>2019-07-23T17:42:55Z</dc:date>
    </item>
  </channel>
</rss>

