2. Open file handles and files:
By default number of open file count is 1024 for each user and if you keep it to default then you may face java.io.FileNotFoundException: (Too many open files) and your job will get failed. In order to avoid this scenario set this number of open file limit to unlimited or some higher number like 32832.
Commands:
ulimit –S 4096
ulimit –H 32832
Also, Please set the system wide file descriptors by using below command:
sysctl –w fs.file-max=6544018
As above kernel variable is temporary and we need to make it permanent by adding it to /etc/sysctl.conf. Just edit /etc/sysctl.conf and add below value at the end of it
fs.file-max=6544018