原文地址: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 servicemkdir -p /etc/systemd/system/cloudera-director-server.service.d/# make an override conf file so that a Director upgrade will not break the changesvim /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 daemonsystemctl daemon-reload# finally restart Directorsystemctl 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!
