I am dumping for elasticsearch using Elasticsearch-Exporter in OSX Mavericks:
node /usr/bin/node_modules/elasticsearch-exporter/exporter.js -j ${esIndexName} -f esbackup
I have an application that runs two nodes, which together with the node application integrates a total of three nodes. The node created by the team elasticsearchis the node wizard. When I run the export command against my index, I get this after a few seconds of a successful download:
2014-05-07T14:31:38.325-0700 [elasticsearch[Rancor][[es][1]: Lucene Merge Thread #0]] [WARN] merge.scheduler [][] - [Rancor] [es][1] failed to merge
815 java.io.FileNotFoundException: /private/var/data/core/elasticsearch_me/nodes/0/indices/es/1/index/_f_es090_0.tip (Too many open files)
I tried the following:
launchctl limit 10000
sudo launchctl limit 40000 65000
elasticsearch soft nofile 32000
elasticsearch hard nofile 32000
adding -XX:-MaxFDLimitjvm to my arguments for application
None of them solves my problem. Sometimes the download ends without errors, but most of the time I encounter an error. Anyone have any ideas / hints that might be my problem?
Edit:
$ launchctl limit
cpu unlimited unlimited
filesize unlimited unlimited
data unlimited unlimited
stack 8388608 67104768
core 0 unlimited
rss unlimited unlimited
memlock unlimited unlimited
maxproc 709 1064
maxfiles 10000 10240
$ sudo launchctl limit
Password:
cpu unlimited unlimited
filesize unlimited unlimited
data unlimited unlimited
stack 8388608 67104768
core 0 unlimited
rss unlimited unlimited
memlock unlimited unlimited
maxproc 709 1064
maxfiles 40000 65000