"Too many open files" exception while indexing data in elasticsearch using jdbc river "Too many open files" exception while indexing data in elasticsearch using jdbc river elasticsearch elasticsearch

"Too many open files" exception while indexing data in elasticsearch using jdbc river


This is the most important part of the error message:

Caused by: java.io.FileNotFoundException: /var/www/elasticsearch-0.19.0/data/elasticsearch/nodes/0/indices/monitoring/0/index/_1pr.tvd (Too many open files)

Basically, your elasticsearch node is running out of file descriptors. See File Descriptors section of Elasticsearch installation instructions for details on how to check how many handles are available to elasticsearch. In order to fix it, you need to increase the number of file descriptors available to the elasticsearch process.