疲劳是最舒适的枕头,努力工作吧。

Elasticsearch启动异常

Elasticsearch | 作者 calluo | 发布于2016年09月20日 | 阅读数:15961

linux 搭建的ELK
启动Elasticsearch时报错,错误信息:
[2016-09-20 15:02:35,884][WARN ][bootstrap                ] unable to install syscall filter: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
[2016-09-20 15:02:36,151][INFO ][node                     ] [Clint Barton] version[2.3.5], pid[28335], build[90f439f/2016-07-27T10:36:52Z]
[2016-09-20 15:02:36,151][INFO ][node                     ] [Clint Barton] initializing ...
[2016-09-20 15:02:36,935][INFO ][plugins                  ] [Clint Barton] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
[2016-09-20 15:02:36,962][INFO ][env                      ] [Clint Barton] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [30.6gb], net total_space [39.2gb], spins? [no], types [ext4]
[2016-09-20 15:02:36,962][INFO ][env                      ] [Clint Barton] heap size [1007.3mb], compressed ordinary object pointers [true]
[2016-09-20 15:02:36,963][WARN ][env                      ] [Clint Barton] max file descriptors [65535] for elasticsearch process likely too low, consider increasing to at least [65536]
[2016-09-20 15:02:39,760][INFO ][node                     ] [Clint Barton] initialized
[2016-09-20 15:02:39,761][INFO ][node                     ] [Clint Barton] starting ...
[2016-09-20 15:02:39,884][INFO ][transport                ] [Clint Barton] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}
[2016-09-20 15:02:39,890][INFO ][discovery                ] [Clint Barton] elasticsearch/mK8VUWZKSQKr14wx5_7eaQ
[2016-09-20 15:02:42,939][INFO ][cluster.service          ] [Clint Barton] new_master {Clint Barton}{mK8VUWZKSQKr14wx5_7eaQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-09-20 15:02:42,985][INFO ][http                     ] [Clint Barton] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}
[2016-09-20 15:02:42,985][INFO ][node                     ] [Clint Barton] started
[2016-09-20 15:02:43,156][WARN ][gateway                  ] [Clint Barton] [logstash-apacheaccesslog-2016.09.19]: failed to write index state
java.nio.file.AccessDeniedException: /usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/_state/state-6.st.tmp
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
        at java.nio.file.Files.newOutputStream(Files.java:216)
        at org.elasticsearch.gateway.MetaDataStateFormat.write(MetaDataStateFormat.java:112)
        at org.elasticsearch.gateway.MetaStateService.writeIndex(MetaStateService.java:135)
        at org.elasticsearch.gateway.GatewayMetaState.clusterChanged(GatewayMetaState.java:160)
        at org.elasticsearch.gateway.Gateway.clusterChanged(Gateway.java:185)
        at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610)
        at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772)
        at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
        at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
[2016-09-20 15:02:43,159][INFO ][gateway                  ] [Clint Barton] recovered [3] indices into cluster_state
[2016-09-20 15:02:43,623][WARN ][indices.cluster          ] [Clint Barton] [[logstash-apacheaccesslog-2016.09.19][1]] marking and sending shard failed due to [failed recovery]
[logstash-apacheaccesslog-2016.09.19][[logstash-apacheaccesslog-2016.09.19][1]] IndexShardRecoveryException[failed to recovery from gateway]; nested: EngineCreationFailureException[failed to create engine]; nested: AccessDeniedException[/usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/1/index/write.lock];
        at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:250)
        at org.elasticsearch.index.shard.StoreRecoveryService.access$100(StoreRecoveryService.java:56)
        at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: [logstash-apacheaccesslog-2016.09.19][[logstash-apacheaccesslog-2016.09.19][1]] EngineCreationFailureException[failed to create engine]; nested: AccessDeniedException[/usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/1/index/write.lock];
        at org.elasticsearch.index.engine.InternalEngine.<init>(InternalEngine.java:155)
        at org.elasticsearch.index.engine.InternalEngineFactory.newReadWriteEngine(InternalEngineFactory.java:25)
        at org.elasticsearch.index.shard.IndexShard.newEngine(IndexShard.java:1509)
        at org.elasticsearch.index.shard.IndexShard.createNewEngine(IndexShard.java:1493)
        at org.elasticsearch.index.shard.IndexShard.internalPerformTranslogRecovery(IndexShard.java:966)
        at org.elasticsearch.index.shard.IndexShard.performTranslogRecovery(IndexShard.java:938)
        at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:241)
        ... 5 more
Caused by: java.nio.file.AccessDeniedException: /usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/1/index/write.lock
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
        at java.nio.channels.FileChannel.open(FileChannel.java:287)
        at java.nio.channels.FileChannel.open(FileChannel.java:335)
        at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:113)
        at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
        at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)
        at org.apache.lucene.store.FileSwitchDirectory.obtainLock(FileSwitchDirectory.java:75)
        at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:94)
        at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:94)
        at org.apache.lucene.store.SleepingLockWrapper.obtainLock(SleepingLockWrapper.java:84)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:776)
        at org.elasticsearch.index.engine.InternalEngine.createWriter(InternalEngine.java:1090)
        at org.elasticsearch.index.engine.InternalEngine.<init>(InternalEngine.java:149)
        ... 11 more
[2016-09-20 15:02:43,630][WARN ][cluster.action.shard     ] [Clint Barton] [logstash-apacheaccesslog-2016.09.19][1] received shard failed for target shard [[logstash-apacheaccesslog-2016.09.19][1], node[mK8VUWZKSQKr14wx5_7eaQ], [P], v[4], s[INITIALIZING], a[id=Yks7KqIPS-KKoQjPCGSTAw], unassigned_info[[reason=CLUSTER_RECOVERED], at[2016-09-20T07:02:42.990Z]]], indexUUID [SpN5vyNESNqaxfbsqBpEfg], message [failed recovery], failure [IndexShardRecoveryException[failed to recovery from gateway]; nested: EngineCreationFailureException[failed to create engine]; nested: AccessDeniedException[/usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/1/index/write.lock]; ]
[logstash-apacheaccesslog-2016.09.19][[logstash-apacheaccesslog-2016.09.19][1]] IndexShardRecoveryException[failed to recovery from gateway]; nested: EngineCreationFailureException[failed to create engine]; nested: AccessDeniedException[/usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/1/index/write.lock];
        at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:250)
        at org.elasticsearch.index.shard.StoreRecoveryService.access$100(StoreRecoveryService.java:56)
        at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: [logstash-apacheaccesslog-2016.09.19][[logstash-apacheaccesslog-2016.09.19][1]] EngineCreationFailureException[failed to create engine]; nested: AccessDeniedException[/usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/1/index/write.lock];
        at org.elasticsearch.index.engine.InternalEngine.<init>(InternalEngine.java:155)
        at org.elasticsearch.index.engine.InternalEngineFactory.newReadWriteEngine(InternalEngineFactory.java:25)
        at org.elasticsearch.index.shard.IndexShard.newEngine(IndexShard.java:1509)
        at org.elasticsearch.index.shard.IndexShard.createNewEngine(IndexShard.java:1493)
        at org.elasticsearch.index.shard.IndexShard.internalPerformTranslogRecovery(IndexShard.java:966)
        at org.elasticsearch.index.shard.IndexShard.performTranslogRecovery(IndexShard.java:938)
        at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:241)
        ... 5 more
Caused by: java.nio.file.AccessDeniedException: /usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/1/index/write.lock
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
        at java.nio.channels.FileChannel.open(FileChannel.java:287)
        at java.nio.channels.FileChannel.open(FileChannel.java:335)
        at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:113)
        at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41)
        at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45)
        at org.apache.lucene.store.FileSwitchDirectory.obtainLock(FileSwitchDirectory.java:75)
        at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:94)
        at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:94)
        at org.apache.lucene.store.SleepingLockWrapper.obtainLock(SleepingLockWrapper.java:84)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:776)
        at org.elasticsearch.index.engine.InternalEngine.createWriter(InternalEngine.java:1090)
        at org.elasticsearch.index.engine.InternalEngine.<init>(InternalEngine.java:149)
        ... 11 more
[2016-09-20 15:02:43,641][WARN ][indices.cluster          ] [Clint Barton] [[logstash-apacheaccesslog-2016.09.19][2]] marking and sending shard failed due to [failed recovery]
[logstash-apacheaccesslog-2016.09.19][[logstash-apacheaccesslog-2016.09.19][2]] IndexShardRecoveryException[failed to recovery from gateway]; nested: EngineCreationFailureException[failed to create engine]; nested: AccessDeniedException[/usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/2/index/write.lock];
        at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:250)
        at org.elasticsearch.index.shard.StoreRecoveryService.access$100(StoreRecoveryService.java:56)
        at org.elasticsearch.index.shard.StoreRecoveryService$1.run(StoreRecoveryService.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: [logstash-apacheaccesslog-2016.09.19][[logstash-apacheaccesslog-2016.09.19][2]] EngineCreationFailureException[failed to create engine]; nested: AccessDeniedException[/usr/local/elasticsearch-2.3.5/data/elasticsearch/nodes/0/indices/logstash-apacheaccesslog-2016.09.19/2/index/write.lock];
        at org.elasticsearch.index.engine.InternalEngine.<init>(InternalEngine.java:155)
        at org.elasticsearch.index.engine.InternalEngineFactory.newReadWriteEngine(InternalEngineFactory.java:25)
        at org.elasticsearch.index.shard.IndexShard.newEngine(IndexShard.java:1509)
        at org.elasticsearch.index.shard.IndexShard.createNewEngine(IndexShard.java:1493)
        at org.elasticsearch.index.shard.IndexShard.internalPerformTranslogRecovery(IndexShard.java:966)
        at org.elasticsearch.index.shard.IndexShard.performTranslogRecovery(IndexShard.java:938)
        at org.elasticsearch.index.shard.StoreRecoveryService.recoverFromStore(StoreRecoveryService.java:241)
        ... 5 more

......
 
已邀请:

knowmara

赞同来自: calluo

没权限吧,你看看你index文件目录是不是es没有权限

要回复问题请先登录注册