I am getting the below AccessDeniedException few times, why is this happening?
failed to execute operation for shard [[itcorrelationdata][13], node[UglfakcZQsmt1BTIBqk84g], [R], v[658], s[STARTED], a[id=sw4fwjbGRiaCfosyZZYosA]]
ElasticsearchException[failed to refresh store stats]; nested: AccessDeniedException[H:\Data\ittesprod\nodes\0\indices\itcorrelationdata\13\index\_40tj_Lucene54_0.dvd];
at org.elasticsearch.index.store.Store$StoreStatsCache.refresh(Store.java:1532)
at org.elasticsearch.index.store.Store$StoreStatsCache.refresh(Store.java:1517)
at org.elasticsearch.common.util.SingleObjectCache.getOrRefresh(SingleObjectCache.java:55)
at org.elasticsearch.index.store.Store.stats(Store.java:293)
at org.elasticsearch.index.shard.IndexShard.storeStats(IndexShard.java:702)
at org.elasticsearch.action.admin.indices.stats.CommonStats.<init>(CommonStats.java:134)
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.shardOperation(TransportIndicesStatsAction.java:165)
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.shardOperation(TransportIndicesStatsAction.java:47)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.onShardOperation(TransportBroadcastByNodeAction.java:436)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.messageReceived(TransportBroadcastByNodeAction.java:415)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.messageReceived(TransportBroadcastByNodeAction.java:402)
at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
Any solution for this issue. I am facing the same kind of issue when I changed my tokenizer to ngram tokenizer. The ES is working as windows service with system account. And system account is having all the permission to write to the folder. Earlier I never encountered this issue. To test something I changed my tokenizer to Ngram tokenizer and this issue starts to occur. At the same time the created index faces an issue of shard getting de-allocated time and again and I have to delete the index to bring back the cluster to green again . Any help or suggestion will be greatly appreciated.ES version which I am using is ES 2.3.3 .Adding the log here
[2017-03-06 21:28:45,373][DEBUG][action.admin.indices.stats] [sesseri02128_slave_1] [indices:monitor/stats] failed to execute operation for shard [[er_sl_ngam_test][0], node[eqJmzy9tQliGvSfdVO6X1Q], [R], v[6], s[INITIALIZING], a[id=eVRtFS-USBCmB5cDubuysg], unassigned_info[[reason=NODE_LEFT], at[2017-03-06T20:22:46.909Z], details[node_left[dTDN50s9RtefCUzJ2WFtBA]]], expected_shard_size[7246282300]]
ElasticsearchException[failed to refresh store stats]; nested: AccessDeniedException[E:\elasticsearch-2.3.3_NiteshCluster_Slave1\data\metis_dev_cluster\nodes\0\indices\er_sl_ngam_test\0\index\_1ag_Lucene54_0.dvd];
at org.elasticsearch.index.store.Store$StoreStatsCache.refresh(Store.java:1532)
at org.elasticsearch.index.store.Store$StoreStatsCache.refresh(Store.java:1517)
at org.elasticsearch.common.util.SingleObjectCache.getOrRefresh(SingleObjectCache.java:55)
at org.elasticsearch.index.store.Store.stats(Store.java:293)
at org.elasticsearch.index.shard.IndexShard.storeStats(IndexShard.java:702)
at org.elasticsearch.action.admin.indices.stats.CommonStats.<init>(CommonStats.java:134)
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.shardOperation(TransportIndicesStatsAction.java:165)
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.shardOperation(TransportIndicesStatsAction.java:47)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.onShardOperation(TransportBroadcastByNodeAction.java:420)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.messageReceived(TransportBroadcastByNodeAction.java:399)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.messageReceived(TransportBroadcastByNodeAction.java:386)
at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:300)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
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: java.nio.file.AccessDeniedException: E:\elasticsearch-2.3.3_NiteshCluster_Slave1\data\metis_dev_cluster\nodes\0\indices\er_sl_ngam_test\0\index\_1ag_Lucene54_0.dvd
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.