你不会是程序猿吧?

es连接被中止

Elasticsearch | 作者 shitangjiejie | 发布于2018年01月07日 | 阅读数:3827

es集群在运行一段时间后会报如下问题,请教各位大神这是什么原因导致的?快愁死了Caused by: org.apache.lucene.store.AlreadyClosedException: refusing to delete any files: this IndexWriter hit an unrecoverable exception
    at org.apache.lucene.index.IndexFileDeleter.ensureOpen(IndexFileDeleter.java:343)
    at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:727)
    at org.apache.lucene.index.IndexFileDeleter.deletePendingFiles(IndexFileDeleter.java:516)
    at org.apache.lucene.index.IndexFileDeleter.deleteNewFiles(IndexFileDeleter.java:719)
    at org.apache.lucene.index.IndexWriter.deleteNewFiles(IndexWriter.java:4679)
    at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4153)
    at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3655)
    at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:588)
    at org.elasticsearch.index.engine.ElasticsearchConcurrentMergeScheduler.doMerge(ElasticsearchConcurrentMergeScheduler.java:94)
    at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:626)
Caused by: java.io.IOException: File too large
    at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
    at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:60)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
    at sun.nio.ch.IOUtil.write(IOUtil.java:65)
    at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:211)
    at java.nio.channels.Channels.writeFullyImpl(Channels.java:78)
    at java.nio.channels.Channels.writeFully(Channels.java:101)
    at java.nio.channels.Channels.access$000(Channels.java:61)
    at java.nio.channels.Channels$1.write(Channels.java:174)
    at org.apache.lucene.store.FSDirectory$FSIndexOutput$1.write(FSDirectory.java:278)
    at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
    at org.apache.lucene.store.OutputStreamIndexOutput.writeBytes(OutputStreamIndexOutput.java:53)
    at org.apache.lucene.store.RateLimitedIndexOutput.writeBytes(RateLimitedIndexOutput.java:73)
    at org.apache.lucene.store.DataOutput.copyBytes(DataOutput.java:278)
    at org.apache.lucene.codecs.lucene50.Lucene50CompoundFormat.write(Lucene50CompoundFormat.java:91)
    at org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4659)
    at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4131)
已邀请:
报错信息里面有这个异常Caused by: java.io.IOException: File too large
请使用ulimit -a 命令查看下 shell所能建立的最大文件限制,如果有限制,可以使用 ulimit -f 命令进行修改增大或者设置为不限制。
参考:

要回复问题请先登录注册