I am experimenting shadow replica on my ES 1.7.5 cluster with 3 data nodes.
Following is what I did:
- Add following settings to elasticsearch.yml
node.enable_custom_paths: true
node.add_id_to_custom_path: false
path.shared_data: Z:\esindex
Node: Z is mounted drive of the shared files system
-
Create an index with shadow replica with following setting:
"index": {
"data_path": "Z:\esindex",
"shadow_replicas": true,
"number_of_shards": 3,
"number_of_replicas": 2
} -
Insert docs to index
The shadow replica index worked fine for both index and search, until I added a new data node into cluster which triggered shards re-balancing.
I got following exception:
[2016-04-21 01:59:56,555][WARN ][indices.cluster ] [data-vm-3] [[testindex_shadowreplica][0]] marking and sending shard failed due to [failed to create shard]
org.elasticsearch.index.shard.IndexShardCreationException: [testindex_shadowreplica][0] failed to create shard
Caused by: java.nio.file.FileSystemException: Z:\esindex\testindex_shadowreplica\0\index: Unable to determine if root directory exists
What is wrong here?