I am using Elasticsearch 1.4 and ubuntu 12.04.3 LTS.Trying to create a snapshot for Local elasticsearch. I refer this website
This website steps are working fine on windows Elasticsearch. If I Register the repository on Ubuntu Elasticsearch. it fired below message.
This Query What I run
curl -XPUT http://xx.xx.xx.xx:9200/_snapshot/es_snap -d '{
"type": "fs",
"settings": {
"location": "/mount/backups/my_backup"
}
}'
I got this Response.
{
"error":"RepositoryException[[es_snap] failed to create repository];
nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.common.blobstore.BlobStoreException:
Failed to create directory at [
D:/data/es_snapshot_bkup/es_snapshot_repo]\n
at org.elasticsearch.repositories.fs.FsRepository.<init>(Unknown Source)\n
while locating org.elasticsearch.repositories.fs.FsRepository\n
while locating org.elasticsearch.repositories.Repository\n\n1 error
];
nested: BlobStoreException[Failed to create directory at [/mount/backups/my_backup]]; ",
"status":500
}