原文地址:https://community.cloudera.com/t5/Support-Questions/Too-many-open-files/td-p/93078
This is because the limit file (/proc/
A solution for this since it uses systemd on RHEL/CentOS 7 is to do the following:
# make a folder for custom systemd changes for this service
mkdir -p /etc/systemd/system/cloudera-director-server.service.d/
# make an override conf file so that a Director upgrade will not break the changes
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
# next reload the daemon
systemctl daemon-reload
# finally restart Director
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!