The requested URL was not found on this server. 不管你信不信,反正我是没找到

创建索引时出现translog [30] is already closed的错误

Elasticsearch | 作者 zhangg7723 | 发布于2017年11月30日 | 阅读数:4546

ES在做数据采集时有些数据无法导入,日志中频繁出现异常:
ES在做数据采集时有些数据无法导入,日志中频繁出现异常:

[hdh233] failed to set shard [traffic-2017112300-2017113000][2] index buffer to [512mb]
org.apache.lucene.store.AlreadyClosedException: translog [30] is already closed
at org.elasticsearch.index.translog.TranslogWriter.ensureOpen(TranslogWriter.java:321)
at org.elasticsearch.index.translog.BufferingTranslogWriter.updateBufferSize(BufferingTranslogWriter.java:148)
at org.elasticsearch.index.translog.Translog.updateBuffer(Translog.java:375)
at org.elasticsearch.index.shard.IndexShard.updateBufferSize(IndexShard.java:1098)
at org.elasticsearch.indices.memory.IndexingMemoryController.updateShardBuffers(IndexingMemoryController.java:232)
at org.elasticsearch.indices.memory.IndexingMemoryController$ShardsIndicesStatusChecker.run(IndexingMemoryController.java:286)
at org.elasticsearch.threadpool.ThreadPool$LoggingRunnable.run(ThreadPool.java:625)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

 
已邀请:

kennywu76 - Wood

赞同来自:

看一下错误日志里是由有"Too many open files"这样的报错,有可能文件句柄不够用了导致写磁盘有问题。

要回复问题请先登录注册