原文地址:https://community.cloudera.com/t5/Support-Questions/Too-many-open-files/td-p/93078

    This is because the limit file (/proc//limit) of the process has a “Max open files” of 1024 which is to low for most operations.

    A solution for this since it uses systemd on RHEL/CentOS 7 is to do the following:

    1. # make a folder for custom systemd changes for this service
    2. mkdir -p /etc/systemd/system/cloudera-director-server.service.d/
    3. # make an override conf file so that a Director upgrade will not break the changes
    4. vim /etc/systemd/system/cloudera-director-server.service.d/override.conf
    5. # then add the following in that file and save/quit it
    6. [Service]
    7. LimitNOFILE=65536
    8. # next reload the daemon
    9. systemctl daemon-reload
    10. # finally restart Director
    11. systemctl restart cloudera-director-server

    Then if you check the limit file in the new process you will see it show 65536 as the “Max open files”.

    Hopefully this can help someone in the future. Cheers!

    View solution in original post